mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibHTTP: Actually include query parameters when serializing raw request
This commit is contained in:
parent
4d5dc5950a
commit
5c46741be8
Notes:
sideshowbarker
2024-07-19 06:57:46 +09:00
Author: https://github.com/shadowfacts Commit: https://github.com/SerenityOS/serenity/commit/5c46741be86 Pull-request: https://github.com/SerenityOS/serenity/pull/2107
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ ByteBuffer HttpRequest::to_raw_request() const
|
|||
builder.append(method_name());
|
||||
builder.append(' ');
|
||||
builder.append(m_url.path());
|
||||
if (!m_url.query().is_empty()) {
|
||||
builder.append('?');
|
||||
builder.append(m_url.query());
|
||||
}
|
||||
builder.append(" HTTP/1.1\r\nHost: ");
|
||||
builder.append(m_url.host());
|
||||
builder.append("\r\nConnection: close\r\n\r\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue