Skip to content

Commit 0da393c

Browse files
committed
CURL option CURL_HTTP_VERSION_1_0
1 parent 7d479ac commit 0da393c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cleantalk.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Cleantalk base class
44
*
5-
* @version 1.34
5+
* @version 1.35
66
* @package Cleantalk
77
* @subpackage Base
88
* @author Cleantalk team ([email protected])
@@ -590,6 +590,8 @@ private function sendRequest($data = null, $url, $server_timeout = 3) {
590590
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
591591
// resolve 'Expect: 100-continue' issue
592592
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
593+
// see http://stackoverflow.com/a/23322368
594+
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
593595

594596
// Disabling CA cert verivication
595597
// Disabling common name verification

0 commit comments

Comments
 (0)