mirror of
https://github.com/RGBCube/serenity
synced 2025-07-22 22:37:40 +00:00
CHttpRequest: Use the correct newline format ('\r\n').
Also let's say HTTP/1.1 instead of HTTP/1.0. :^)
This commit is contained in:
parent
4573eb226e
commit
db2980c848
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ ByteBuffer CHttpRequest::to_raw_request() const
|
|||
builder.append(method_name());
|
||||
builder.append(' ');
|
||||
builder.append(m_path);
|
||||
builder.append(" HTTP/1.0\nHost: ");
|
||||
builder.append(" HTTP/1.1\r\nHost: ");
|
||||
builder.append(m_hostname);
|
||||
builder.append("\n\n");
|
||||
builder.append("\r\n\r\n");
|
||||
return builder.to_byte_buffer();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue