浏览代码

Set response code to 0 instead of 400 first.

Miku AuahDark 3 年之前
父节点
当前提交
5c95e6c53d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/HTTPRequest.cpp

+ 1 - 1
src/common/HTTPRequest.cpp

@@ -15,7 +15,7 @@ HTTPRequest::HTTPRequest(ConnectionFactory factory)
 HTTPSClient::Reply HTTPRequest::request(const HTTPSClient::Request &req)
 {
 	HTTPSClient::Reply reply;
-	reply.responseCode = 400;
+	reply.responseCode = 0;
 
 	auto info = parseUrl(req.url);
 	if (!info.valid)