This is an automated email from the ASF dual-hosted git repository. willholley pushed a commit to branch upstream-2.20.0 in repository https://gitbox.apache.org/repos/asf/couchdb-mochiweb.git
commit 1c73aaf8e92912c67d4c4ac1f98b52e3181f5716 Author: Bob Ippolito <[email protected]> AuthorDate: Mon Mar 11 22:51:02 2019 +0000 Remove compile(tuple_calls) from examples/hmac_api --- examples/hmac_api/hmac_api_lib.erl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/hmac_api/hmac_api_lib.erl b/examples/hmac_api/hmac_api_lib.erl index 95d7c58..4c26f2f 100644 --- a/examples/hmac_api/hmac_api_lib.erl +++ b/examples/hmac_api/hmac_api_lib.erl @@ -5,8 +5,6 @@ -author("Hypernumbers Ltd <[email protected]>"). --compile(tuple_calls). - %%% this library supports the hmac_sha api on both the client-side %%% AND the server-side %%% @@ -36,9 +34,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% authorize_request(Req) -> - Method = Req:get(method), - Path = Req:get(path), - Headers = normalise(mochiweb_headers:to_list(Req:get(headers))), + Method = mochiweb_request:get(method, Req), + Path = mochiweb_request:get(path, Req), + Headers = normalise(mochiweb_headers:to_list(mochiweb_request:get(headers, Req))), ContentMD5 = get_header(Headers, "content-md5"), ContentType = get_header(Headers, "content-type"), Date = get_header(Headers, "date"),
