Skip to content

Commit 60f278d

Browse files
committed
Updating Windows http_listener to respond with BadRequest if the URI is invalid.
1 parent ad24c36 commit 60f278d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/listener/http_server_httpsys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void windows_request_context::read_headers_io_completion(DWORD error_code, DWORD
546546
}
547547
catch(const uri_exception &e)
548548
{
549-
m_msg.reply(status_codes::InternalError, e.what());
549+
m_msg.reply(status_codes::BadRequest, e.what());
550550
}
551551
m_msg.set_method(parse_request_method(m_request));
552552
parse_http_headers(m_request->Headers, m_msg.headers());

0 commit comments

Comments
 (0)