diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-09-01 10:12:30 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-09-01 12:06:13 -0700 |
commit | 00878f8111d1255278dc984266f8664d2573e553 (patch) | |
tree | 75644ee4242593346f71f2754f4db23dc9cd780c /AndroidAsyncTest/src/com | |
parent | 5e7f1df069c288a32a5910fc147919bffe264100 (diff) | |
download | AndroidAsync-00878f8111d1255278dc984266f8664d2573e553.tar.gz AndroidAsync-00878f8111d1255278dc984266f8664d2573e553.tar.bz2 AndroidAsync-00878f8111d1255278dc984266f8664d2573e553.zip |
Fix up keep-alive handling.
Fix up Range/Content-Length calculations.
Fix up header logging. (TODO: dont call toHeaderString)
Change-Id: I3cdcdca179a5b7ddcbdaa582590e60f52cd5c515
Diffstat (limited to 'AndroidAsyncTest/src/com')
-rw-r--r-- | AndroidAsyncTest/src/com/koushikdutta/async/test/HttpServerTests.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AndroidAsyncTest/src/com/koushikdutta/async/test/HttpServerTests.java b/AndroidAsyncTest/src/com/koushikdutta/async/test/HttpServerTests.java index d0cab89..3d6ca3c 100644 --- a/AndroidAsyncTest/src/com/koushikdutta/async/test/HttpServerTests.java +++ b/AndroidAsyncTest/src/com/koushikdutta/async/test/HttpServerTests.java @@ -48,6 +48,7 @@ public class HttpServerTests extends TestCase { httpServer.get("/hello", new HttpServerRequestCallback() { @Override public void onRequest(AsyncHttpServerRequest request, AsyncHttpServerResponse response) { + assertNotNull(request.getHeaders().getHost()); response.send("hello"); } }); @@ -56,6 +57,7 @@ public class HttpServerTests extends TestCase { @Override public void onRequest(AsyncHttpServerRequest request, final AsyncHttpServerResponse response) { try { + assertNotNull(request.getHeaders().getHost()); JSONObject json = new JSONObject(); if (request.getBody() instanceof UrlEncodedFormBody) { UrlEncodedFormBody body = (UrlEncodedFormBody)request.getBody(); |