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 c3e45be3a746bb4e790eb1318532f8db8f374939 Author: Bob Ippolito <[email protected]> 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('[email protected]'). --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
