mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-09 01:20:46 +00:00
LibHTTP: Actually include query parameters when serializing raw request
This commit is contained in:
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");
|
||||
|
|
Loading…
Reference in a new issue