Skip to content

Commit

Permalink
tabs to spaces in mochiweb_request_bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Jan 24, 2013
1 parent bf85852 commit df56943
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/mochiweb_bridge_modules/mochiweb_request_bridge.erl
Expand Up @@ -21,7 +21,7 @@
%% {Req, DocRoot} is deprecated
%% Maintained for backwards compatibility.
init({Req, _DocRoot}) ->
init(Req);
init(Req);
init(Req) ->
Req.

Expand Down Expand Up @@ -118,18 +118,18 @@ post_params(Req) ->
Req:parse_post().

request_body(Req) ->
MaxBody = case application:get_env(mochiweb,max_request_size) of
undefined ->
?MAX_RECV_BODY;
{ok, Max} when is_integer(Max) ->
Max;
Other ->
error_logger:warning_msg("Mochiweb Simple Bridge Configuration Error! Unknown value for 'mochiweb' application variable 'max_request_size': ~p. Expected: integer() or undefined. Using Default of ~p~n",[Other,?MAX_RECV_BODY]),
?MAX_RECV_BODY
end,
MaxBody = case application:get_env(mochiweb,max_request_size) of
undefined ->
?MAX_RECV_BODY;
{ok, Max} when is_integer(Max) ->
Max;
Other ->
error_logger:warning_msg("Mochiweb Simple Bridge Configuration Error! Unknown value for 'mochiweb' application variable 'max_request_size': ~p. Expected: integer() or undefined. Using Default of ~p~n",[Other,?MAX_RECV_BODY]),
?MAX_RECV_BODY
end,
Req:recv_body(MaxBody).

socket(Req) ->
socket(Req) ->
Req:get(socket).

recv_from_socket(Length, Timeout, Req) ->
Expand Down

0 comments on commit df56943

Please sign in to comment.