Permalink
Browse files

small fix

  • Loading branch information...
1 parent c2b86f1 commit 0dd51e8598d35bc7bb6171f7621ff4a6bfff9e66 @arminc committed Dec 29, 2010
@@ -54,7 +54,7 @@ public Response(HttpHandler http, Context conx)
{
context = conx;
// check status, error etc...
- if (http.getErrorMessage() == null && http.getResponseCode() == 200)
+ if (http.getResponseCode() == 200)
{
String data = http.getResponse().replace("<?xml version=\"1.0\" encoding=\"utf-8\"?>", "");
Document doc = getDocument(data);
@@ -58,7 +58,7 @@
private String url;
private int responseCode;
- private String errMessage;
+ private String errMessage = null;
private Context context;
private Header[] allHeaders;

0 comments on commit 0dd51e8

Please sign in to comment.