Skip to content
Permalink
Browse files
Remove compile(tuple_calls) from mochiweb_request
  • Loading branch information
etrepum committed Mar 11, 2019
1 parent 6f9452c commit c3e45be3a746bb4e790eb1318532f8db8f374939
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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

0 comments on commit c3e45be

Please sign in to comment.