diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-12-29 03:01:17 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-12-29 03:01:17 +0000 |
commit | 883819bb3069837791cccd08d38f146a0eae4948 (patch) | |
tree | 92ac2254409f13b48087cb28e6b25378e805697f | |
parent | 538848259b9d80ccfca5ddb515ebc491f0489c56 (diff) |
Fix 180-http-proxy tests after Mochiweb upgrade.
Content-Length and the HTTP body are returned as 0 and an empty binary
instead of undefined.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1053514 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | test/etap/180-http-proxy.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/etap/180-http-proxy.t b/test/etap/180-http-proxy.t index b91d901b..cf1c2783 100755 --- a/test/etap/180-http-proxy.t +++ b/test/etap/180-http-proxy.t @@ -93,8 +93,8 @@ test_basic() -> Remote = fun(Req) -> 'GET' = Req:get(method), "/" = Req:get(path), - undefined = Req:get(body_length), - undefined = Req:recv_body(), + 0 = Req:get(body_length), + <<>> = Req:recv_body(), {ok, {200, [{"Content-Type", "text/plain"}], "ok"}} end, Local = fun({ok, "200", _, "ok"}) -> true; (_) -> false end, |