aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-08-15 09:44:37 +0200
committerIngela Anderton Andin <[email protected]>2018-08-15 09:44:37 +0200
commit50214f02501926fee6ec286efa68a57a47c2e531 (patch)
tree4503133a92ec6851fcdba124ba1c2ff86715b8b5 /lib/inets/src
parent61231a9266d784f7f014dc79e476253b8586632b (diff)
parent240e1c58958ff0429b54f1e237ed989efe0adc49 (diff)
downloadotp-50214f02501926fee6ec286efa68a57a47c2e531.tar.gz
otp-50214f02501926fee6ec286efa68a57a47c2e531.tar.bz2
otp-50214f02501926fee6ec286efa68a57a47c2e531.zip
Merge branch 'maint'
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_server/httpd_response.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_response.erl b/lib/inets/src/http_server/httpd_response.erl
index 3ee8665a54..bb946664f9 100644
--- a/lib/inets/src/http_server/httpd_response.erl
+++ b/lib/inets/src/http_server/httpd_response.erl
@@ -61,8 +61,12 @@ generate_and_send_response(#mod{config_db = ConfigDB} = ModData) ->
{StatusCode, Response} -> %% Old way
send_response_old(ModData, StatusCode, Response),
ok;
- undefined ->
- send_status(ModData, 500, none),
+ undefined ->
+ %% Happens when no mod_*
+ %% handles the request
+ send_status(ModData, 501, {ModData#mod.method,
+ ModData#mod.request_uri,
+ ModData#mod.http_version}),
ok
end
end