From db2980c84827e9877a520dc819fcd152fd868653 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Jun 2019 22:10:43 +0200 Subject: [PATCH] CHttpRequest: Use the correct newline format ('\r\n'). Also let's say HTTP/1.1 instead of HTTP/1.0. :^) --- LibCore/CHttpRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibCore/CHttpRequest.cpp b/LibCore/CHttpRequest.cpp index de62a8cd6d..4012cc9f85 100644 --- a/LibCore/CHttpRequest.cpp +++ b/LibCore/CHttpRequest.cpp @@ -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(); }