Skip to content

Commit 87aefa9

Browse files
chaofreyxiao
authored andcommitted
当请求正文内容过大遇到HTTP/1.1 100 Continue的解决办法
1 parent 4258426 commit 87aefa9

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)