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:18 UTC

[couchdb-mochiweb] 19/37: Remove compile(tuple_calls) from mochiweb_request

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 9c964e32fdf5614d9b9296c034d4d3edda332345
Author: Bob Ippolito <bo...@redivi.com>
AuthorDate: Sat Mar 9 20:50:54 2019 +0000

    Remove compile(tuple_calls) from mochiweb_request
---
 src/mochiweb_request.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mochiweb_request.erl b/src/mochiweb_request.erl
index 240f043..3889d33 100644
--- a/src/mochiweb_request.erl
+++ b/src/mochiweb_request.erl
@@ -24,8 +24,6 @@
 -module(mochiweb_request).
 -author('bob@mochimedia.com').
 
--compile(tuple_calls).
-
 -include_lib("kernel/include/file.hrl").
 -include("internal.hrl").
 
@@ -428,7 +426,7 @@ ok({ContentType, Body}, {?MODULE, [_Socket, _Opts, _Method, _RawPath, _Version,
     ok({ContentType, [], Body}, THIS);
 ok({ContentType, ResponseHeaders, Body}, {?MODULE, [_Socket, _Opts, _Method, _RawPath, _Version, _Headers]}=THIS) ->
     HResponse = mochiweb_headers:make(ResponseHeaders),
-    case THIS:get(range) of
+    case get(range, THIS) of
         X when (X =:= undefined orelse X =:= fail) orelse Body =:= chunked ->
             %% http://code.google.com/p/mochiweb/issues/detail?id=54
             %% Range header not supported when chunked, return 200 and provide