Commit 06c5b9ca by Adi Amir

bugfix: null while analyzing checking for binary content

parent 21877950
...@@ -133,7 +133,7 @@ public class SimpleHttpRequest { ...@@ -133,7 +133,7 @@ public class SimpleHttpRequest {
return pes.escape(queryString); return pes.escape(queryString);
} }
public HttpUriRequest build() throws UnsupportedEncodingException { public HttpRequestBase build() throws UnsupportedEncodingException {
switch (method) { switch (method) {
case GET: case GET:
return buildGetRequest(); return buildGetRequest();
...@@ -151,7 +151,7 @@ public class SimpleHttpRequest { ...@@ -151,7 +151,7 @@ public class SimpleHttpRequest {
// http://domain:port/path?query_string // http://domain:port/path?query_string
protected HttpUriRequest buildGetRequest() { protected HttpRequestBase buildGetRequest() {
// build URI // build URI
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append(protocol+"://"); sb.append(protocol+"://");
...@@ -179,7 +179,7 @@ public class SimpleHttpRequest { ...@@ -179,7 +179,7 @@ public class SimpleHttpRequest {
return getRequest; return getRequest;
} }
protected HttpUriRequest buildPostRequest() { protected HttpRequestBase buildPostRequest() {
// build URI // build URI
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
...@@ -220,7 +220,7 @@ public class SimpleHttpRequest { ...@@ -220,7 +220,7 @@ public class SimpleHttpRequest {
return postRequest; return postRequest;
} }
protected HttpUriRequest buildPutRequest() { protected HttpRequestBase buildPutRequest() {
// build URI // build URI
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
...@@ -262,7 +262,7 @@ public class SimpleHttpRequest { ...@@ -262,7 +262,7 @@ public class SimpleHttpRequest {
return putRequest; return putRequest;
} }
protected HttpUriRequest buildDeleteRequest() { protected HttpRequestBase buildDeleteRequest() {
// build URI // build URI
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
...@@ -290,7 +290,7 @@ public class SimpleHttpRequest { ...@@ -290,7 +290,7 @@ public class SimpleHttpRequest {
return deleteRequest; return deleteRequest;
} }
protected HttpUriRequest buildPatchRequest() { protected HttpRequestBase buildPatchRequest() {
// build URI // build URI
StringBuilder sb = new StringBuilder(); 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