couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r1053514 - /couchdb/branches/1.1.x/test/etap/180-http-proxy.t
Date Wed, 29 Dec 2010 03:01:18 GMT
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,



Mime
View raw message