You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2010/12/21 20:00:22 UTC

svn commit: r1051612 - /couchdb/trunk/test/etap/180-http-proxy.t

Author: davisp
Date: Tue Dec 21 19:00:21 2010
New Revision: 1051612

URL: http://svn.apache.org/viewvc?rev=1051612&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/trunk/test/etap/180-http-proxy.t

Modified: couchdb/trunk/test/etap/180-http-proxy.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/180-http-proxy.t?rev=1051612&r1=1051611&r2=1051612&view=diff
==============================================================================
--- couchdb/trunk/test/etap/180-http-proxy.t (original)
+++ couchdb/trunk/test/etap/180-http-proxy.t Tue Dec 21 19:00:21 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,