mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
RequestServer: Set request body for other methods that can have a body
This commit is contained in:
parent
6862796d5e
commit
fc2141c852
Notes:
github-actions[bot]
2024-09-21 16:14:20 +00:00
Author: https://github.com/mkljczk 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fc2141c8524 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1461
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ void ConnectionFromClient::start_request(i32 request_id, ByteString const& metho
|
|||
|
||||
if (method == "GET"sv) {
|
||||
set_option(CURLOPT_HTTPGET, 1L);
|
||||
} else if (method == "POST"sv) {
|
||||
} else if (method.is_one_of("POST"sv, "PUT"sv, "PATCH"sv, "DELETE"sv)) {
|
||||
request->body = request_body;
|
||||
set_option(CURLOPT_POSTFIELDSIZE, request->body.size());
|
||||
set_option(CURLOPT_POSTFIELDS, request->body.data());
|
||||
|
|
Loading…
Reference in a new issue