Commit 06c5b9ca by Adi Amir

bugfix: null while analyzing checking for binary content

parent 21877950
......@@ -133,7 +133,7 @@ public class SimpleHttpRequest {
return pes.escape(queryString);
}
public HttpUriRequest build() throws UnsupportedEncodingException {
public HttpRequestBase build() throws UnsupportedEncodingException {
switch (method) {
case GET:
return buildGetRequest();
......@@ -151,7 +151,7 @@ public class SimpleHttpRequest {
// http://domain:port/path?query_string
protected HttpUriRequest buildGetRequest() {
protected HttpRequestBase buildGetRequest() {
// build URI
StringBuilder sb = new StringBuilder();
sb.append(protocol+"://");
......@@ -179,7 +179,7 @@ public class SimpleHttpRequest {
return getRequest;
}
protected HttpUriRequest buildPostRequest() {
protected HttpRequestBase buildPostRequest() {
// build URI
StringBuilder sb = new StringBuilder();
......@@ -220,7 +220,7 @@ public class SimpleHttpRequest {
return postRequest;
}
protected HttpUriRequest buildPutRequest() {
protected HttpRequestBase buildPutRequest() {
// build URI
StringBuilder sb = new StringBuilder();
......@@ -262,7 +262,7 @@ public class SimpleHttpRequest {
return putRequest;
}
protected HttpUriRequest buildDeleteRequest() {
protected HttpRequestBase buildDeleteRequest() {
// build URI
StringBuilder sb = new StringBuilder();
......@@ -290,7 +290,7 @@ public class SimpleHttpRequest {
return deleteRequest;
}
protected HttpUriRequest buildPatchRequest() {
protected HttpRequestBase buildPatchRequest() {
// build URI
StringBuilder sb = new StringBuilder();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment