You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2010/12/29 04:01:18 UTC

svn commit: r1053514 - /couchdb/branches/1.1.x/test/etap/180-http-proxy.t

Author: kocolosk
Date: Wed Dec 29 03:01:17 2010
New Revision: 1053514

URL: http://svn.apache.org/viewvc?rev=1053514&view=rev
Log:
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.

Modified:
    couchdb/branches/1.1.x/test/etap/180-http-proxy.t

Modified: couchdb/branches/1.1.x/test/etap/180-http-proxy.t
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/test/etap/180-http-proxy.t?rev=1053514&r1=1053513&r2=1053514&view=diff
==============================================================================
--- couchdb/branches/1.1.x/test/etap/180-http-proxy.t (original)
+++ couchdb/branches/1.1.x/test/etap/180-http-proxy.t Wed Dec 29 03:01:17 2010
@@ -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,