LibHTTP: Actually include query parameters when serializing raw request

This commit is contained in:
Shadowfacts 2020-05-04 22:24:57 -04:00 committed by Andreas Kling
parent 4d5dc5950a
commit 5c46741be8

View file

@ -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");