mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibHTTP: Actually include query parameters when serializing raw request
This commit is contained in:
committed by
Andreas Kling
parent
4d5dc5950a
commit
5c46741be8
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user