1 parent cb37d1c commit 42eabc6Copy full SHA for 42eabc6
1 file changed
AndroidAsync/src/com/koushikdutta/async/http/spdy/SpdyMiddleware.java
@@ -370,7 +370,8 @@ protected void transform(List<Header> result) throws Exception {
370
String status = headers.remove(Header.RESPONSE_STATUS.utf8());
371
String[] statusParts = status.split(" ", 2);
372
data.response.code(Integer.parseInt(statusParts[0]));
373
- data.response.message(statusParts[1]);
+ if (statusParts.length == 2)
374
+ data.response.message(statusParts[1]);
375
data.response.protocol(headers.remove(Header.VERSION.utf8()));
376
data.response.headers(headers);
377
setComplete(headers);
0 commit comments