Skip to content
Commit 4178ede2 authored by Robert Lubos's avatar Robert Lubos Committed by Benjamin Cabé
Browse files

net: http_server: Add support for generic HTTP1 500 response



In case of internal server errors during HTTP1 request processing,
send 500 Internal Server Error response before shutting down the
connection.

Make sure http1_headers_sent is set whenever sever starts replying, to
avoid duplicate response in case of errors, as that would be protocol
violation.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 11eb0433
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment