Remove compile(tuple_calls) from test/mochiweb_http_tests
diff --git a/examples/hmac_api/README b/examples/hmac_api/README
index 3771323..d69821a 100644
--- a/examples/hmac_api/README
+++ b/examples/hmac_api/README
@@ -159,7 +159,7 @@
loop(Req, DocRoot) ->
Auth = hmac_api_lib:authorize_request(Req),
io:format("Auth is ~p~n", [Auth]),
- "/" ++ Path = Req:get(path),
+ "/" ++ Path = mochiweb_request:get(path, Req),
...
When this is done you are ready to test the api:
diff --git a/test/mochiweb_http_tests.erl b/test/mochiweb_http_tests.erl
index 1057755..8fbf0f3 100644
--- a/test/mochiweb_http_tests.erl
+++ b/test/mochiweb_http_tests.erl
@@ -7,8 +7,6 @@
-define(SHOULD_HAVE_BUG, false).
-endif.
--compile(tuple_calls).
-
has_acceptor_bug_test_() ->
{setup,
fun start_server/0,
@@ -29,9 +27,13 @@
?_assertEqual(?SHOULD_HAVE_BUG, has_bug(Port, 10000))}].
responder(Req) ->
- Req:respond({200,
- [{"Content-Type", "text/html"}],
- ["<html><body>Hello</body></html>"]}).
+ mochiweb_request:respond(
+ {
+ 200,
+ [{"Content-Type", "text/html"}],
+ ["<html><body>Hello</body></html>"]
+ },
+ Req).
has_bug(Port, Len) ->
case