From 883819bb3069837791cccd08d38f146a0eae4948 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 29 Dec 2010 03:01:17 +0000 Subject: 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 --- test/etap/180-http-proxy.t | 4 ++-- 1 file 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, -- cgit v1.2.3