aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-13 13:57:42 +0100
committerFredrik Gustafsson <[email protected]>2013-03-13 13:57:42 +0100
commit9285e0f558b1f39a241431e46691841bc0284d57 (patch)
tree15c698f69ef884f6ae5c3d968ed4d81cb385cfc4 /lib/inets/src
parent09fa1ba9b2f4becf68912bcfc4692d226344d920 (diff)
parent1932aa2bf42bdee119c9a7b9e1a7a1a7e627be15 (diff)
downloadotp-9285e0f558b1f39a241431e46691841bc0284d57.tar.gz
otp-9285e0f558b1f39a241431e46691841bc0284d57.tar.bz2
otp-9285e0f558b1f39a241431e46691841bc0284d57.zip
Merge branch 'cm/bug-http-content-length-zero/OTP-10934' into maint
* cm/bug-http-content-length-zero/OTP-10934: Fix http_request:http_headers/1 to send content-length when length is zero
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_lib/http_request.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/inets/src/http_lib/http_request.erl b/lib/inets/src/http_lib/http_request.erl
index c214aca4a4..fbfbe7c632 100644
--- a/lib/inets/src/http_lib/http_request.erl
+++ b/lib/inets/src/http_lib/http_request.erl
@@ -248,13 +248,8 @@ key_value_str(Key = 'content-language', Headers) ->
key_value_str(atom_to_list(Key),
Headers#http_request_h.'content-language');
key_value_str(Key = 'content-length', Headers) ->
- case Headers#http_request_h.'content-length' of
- "0" ->
- undefined;
- _ ->
- key_value_str(atom_to_list(Key),
- Headers#http_request_h.'content-length')
- end;
+ key_value_str(atom_to_list(Key),
+ Headers#http_request_h.'content-length');
key_value_str(Key = 'content-location', Headers) ->
key_value_str(atom_to_list(Key),
Headers#http_request_h.'content-location');