You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/13 19:42:22 UTC
[couchdb-mochiweb] 23/37: Remove compile(tuple_calls) from
examples/hmac_api
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch upstream
in repository https://gitbox.apache.org/repos/asf/couchdb-mochiweb.git
commit 7421d25f1a1d27b1365c752e85f1f6b77507cf82
Author: Bob Ippolito <bo...@redivi.com>
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 <go...@hypernumbers.com>").
--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"),