diff options
author | FabioBatSilva <[email protected]> | 2016-02-22 11:09:01 -0500 |
---|---|---|
committer | FabioBatSilva <[email protected]> | 2016-02-22 11:09:01 -0500 |
commit | 0f6b42953eceb250dcdb61611154cc276895ea85 (patch) | |
tree | 2760d3d363f7272907eaa7650a5321702016718b /lib/inets/src/http_client/httpc_request.erl | |
parent | 33f8fe899ec052ab0a33566f7e9e92fadf3f0a68 (diff) | |
download | otp-0f6b42953eceb250dcdb61611154cc276895ea85.tar.gz otp-0f6b42953eceb250dcdb61611154cc276895ea85.tar.bz2 otp-0f6b42953eceb250dcdb61611154cc276895ea85.zip |
remove whitespaces
Diffstat (limited to 'lib/inets/src/http_client/httpc_request.erl')
-rw-r--r-- | lib/inets/src/http_client/httpc_request.erl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/inets/src/http_client/httpc_request.erl b/lib/inets/src/http_client/httpc_request.erl index af4c3f75f2..5c2d31ee57 100644 --- a/lib/inets/src/http_client/httpc_request.erl +++ b/lib/inets/src/http_client/httpc_request.erl @@ -186,16 +186,18 @@ is_client_closing(Headers) -> %%%======================================================================== %%% Internal functions %%%======================================================================== -post_data(Method, Headers, {ContentType, Body}, HeadersAsIs) - when (Method =:= post) orelse (Method =:= put) - orelse (Method =:= patch) -> +post_data(Method, Headers, {ContentType, Body}, HeadersAsIs) + when (Method =:= post) + orelse (Method =:= put) + orelse (Method =:= patch) -> + NewBody = case Headers#http_request_h.expect of - "100-continue" -> - ""; - _ -> - Body - end, - + "100-continue" -> + ""; + _ -> + Body + end, + NewHeaders = case HeadersAsIs of [] -> Headers#http_request_h{ @@ -213,7 +215,7 @@ post_data(Method, Headers, {ContentType, Body}, HeadersAsIs) _ -> HeadersAsIs end, - + {NewHeaders, NewBody}; post_data(_, Headers, _, []) -> |