mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 20:26:53 +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
Notes:
sideshowbarker
2024-07-18 12:26:31 +09:00
Author: https://github.com/MaxWipfli
Commit: 2d18d3f329
Pull-request: https://github.com/SerenityOS/serenity/pull/7879
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gunnarbeutner
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/stelar7
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