mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
WebServer: Use canonical reasons phrases for error responses
This changes the Client::set_error_response() to not take a "message" anymore. It now uses the canonical reason phrase which is derived from the response code.
This commit is contained in:
parent
631faec32f
commit
2d18d3f329
2 changed files with 8 additions and 6 deletions
|
@ -24,7 +24,7 @@ private:
|
|||
void handle_request(ReadonlyBytes);
|
||||
void send_response(InputStream&, HTTP::HttpRequest const&, String const& content_type);
|
||||
void send_redirect(StringView redirect, HTTP::HttpRequest const&);
|
||||
void send_error_response(unsigned code, StringView const& message, HTTP::HttpRequest const&);
|
||||
void send_error_response(unsigned code, HTTP::HttpRequest const&);
|
||||
void die();
|
||||
void log_response(unsigned code, HTTP::HttpRequest const&);
|
||||
void handle_directory_listing(String const& requested_path, String const& real_path, HTTP::HttpRequest const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue