diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-10-05 11:08:58 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-10-05 11:08:58 +0300 |
commit | 43e729293abb464281173bc40cdb7a0d6101f3ea (patch) | |
tree | 0ac24b46d78b5246e9abe0d9b7188dd6d26f2e45 | |
parent | Correctly handle mod_client_state (re)load (diff) |
Don't report Host mismatch as an error
-rw-r--r-- | src/mod_http_fileserver.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_http_fileserver.erl b/src/mod_http_fileserver.erl index b3e75c495..d9805c1a2 100644 --- a/src/mod_http_fileserver.erl +++ b/src/mod_http_fileserver.erl @@ -310,10 +310,10 @@ process(LocalPath, #request{host = Host, auth = Auth, headers = RHeaders} = Requ add_to_log(FileSize, Code, Request#request{host = VHost}), {Code, Headers, Contents} catch _:{Why, _} when Why == noproc; Why == invalid_domain; Why == unregistered_route -> - ?ERROR_MSG("Received an HTTP request with Host: ~s, " - "but couldn't find the related " - "ejabberd virtual host", [Host]), - ejabberd_web:error(not_found) + ?DEBUG("Received an HTTP request with Host: ~s, " + "but couldn't find the related " + "ejabberd virtual host", [Host]), + ?HTTP_ERR_FILE_NOT_FOUND end. serve(LocalPath, Auth, DocRoot, DirectoryIndices, CustomHeaders, DefaultContentType, |