Skip to content

Commit

Permalink
also check on response
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Sep 23, 2024
1 parent 652c4f6 commit 66e72c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ public void onComplete() {

int responseCode = connection.getResponseCode();
headers = new HashMap<>(connection.getHeaderFields());
cookieHandler.put(var1.uri(), headers);
if (cookieHandler != null) {
cookieHandler.put(var1.uri(), headers);
}
headers.remove(null);
Version version = J_N_H_HttpClient.Version.HTTP_1_1;
HttpResponseInfo info = new HttpResponseInfo(responseCode, new J_N_H_HttpHeaders(headers), version);
Expand Down

0 comments on commit 66e72c3

Please sign in to comment.