Skip to content

Commit b543e33

Browse files
authored
Merge pull request #4 from chao/master
当请求正文内容过大遇到`HTTP/1.1 100 Continue`的解决办法
2 parents 8422e40 + c5812a9 commit b543e33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Queue/Driver/CMQHttp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ 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:' ) );
6869

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

0 commit comments

Comments
 (0)