diff options
author | Ingela Anderton Andin <[email protected]> | 2017-10-09 15:56:05 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-10-12 12:03:10 +0200 |
commit | c030104256344756420d819b1b1381777c216a38 (patch) | |
tree | 6dab0dcbed5abd18af27afcea6d5c87e23ce7f20 /lib/inets/src/http_server | |
parent | becaa0972e42bb0ecedae3aeaba5be221a551fa4 (diff) | |
download | otp-c030104256344756420d819b1b1381777c216a38.tar.gz otp-c030104256344756420d819b1b1381777c216a38.tar.bz2 otp-c030104256344756420d819b1b1381777c216a38.zip |
inets: ENV should be a string
This is tested by new erts check that will cause badarg when trying to
execute scripts via mod_cgi
Diffstat (limited to 'lib/inets/src/http_server')
-rw-r--r-- | lib/inets/src/http_server/httpd_script_env.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_script_env.erl b/lib/inets/src/http_server/httpd_script_env.erl index 055f08fdb0..d7c92c59ef 100644 --- a/lib/inets/src/http_server/httpd_script_env.erl +++ b/lib/inets/src/http_server/httpd_script_env.erl @@ -166,9 +166,9 @@ create_script_elements(cgi, path_info, PathInfo, ModData) -> [{"PATH_INFO", PathInfo}, {"PATH_TRANSLATED", PathTranslated}]; create_script_elements(esi, entity_body, Body, _) -> - [{content_length, httpd_util:flatlength(Body)}]; + [{content_length, integer_to_list(httpd_util:flatlength(Body))}]; create_script_elements(cgi, entity_body, Body, _) -> - [{"CONTENT_LENGTH", httpd_util:flatlength(Body)}]; + [{"CONTENT_LENGTH", integer_to_list(httpd_util:flatlength(Body))}]; create_script_elements(_, _, _, _) -> []. |