Skip to content

Commit 97c943d

Browse files
committed
minor bug fixes
1 parent b543e33 commit 97c943d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Queue/Driver/CMQClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ protected function build_req_inter($action, $params, &$req_inter)
117117
protected function build_header(&$req_inter)
118118
{
119119
if ($this->http->is_keep_alive()) {
120-
$req_inter->header["Connection"] = "Keep-Alive";
120+
$req_inter->header[] = 'Connection: Keep-Alive';
121121
}
122+
123+
$req_inter->header[] = 'Expect:';
122124
}
123125

124126
//===============================================queue operation===============================================

src/Queue/Driver/CMQHttp.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function send_request($req_inter, $userTimeout)
6565
curl_setopt($this->curl, CURLOPT_TIMEOUT, $this->connection_timeout + $userTimeout);
6666

6767
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
68-
curl_setopt($this->curl, CURLOPT_HTTPHEADER, array( 'Expect:' ) );
6968

7069
if (false !== strpos($url, "https")) {
7170
// 证书

0 commit comments

Comments
 (0)