浏览代码

Bei post requests wird am ende der daten kein zeilenumbruch mehr gesendet

Kolja Strohm 5 年之前
父节点
当前提交
28ac488086
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Network/HttpRequest.cpp

+ 1 - 2
Network/HttpRequest.cpp

@@ -25,11 +25,10 @@ Answer *PostRequest::execute() const
     message += host;
     message += "\r\nContent-Type: ";
     message += contentType;
-    message += "\r\nContent-Length: ";
+    message += "; charset=latin-1\r\nContent-Length: ";
     message += data.getLength();
     message += "\r\n\r\n";
     message += data;
-    message += "\r\n";
     Klient httpK;
     if( !httpK.verbinde( port, host ) )
         return 0;