@@ -87,7 +87,7 @@ |
||
| 87 | 87 | curl_setopt($oCurl, CURLOPT_CONNECTTIMEOUT, $this->soaptimeout); |
| 88 | 88 | curl_setopt($oCurl, CURLOPT_TIMEOUT, $this->soaptimeout + 20); |
| 89 | 89 | curl_setopt($oCurl, CURLOPT_HEADER, 1); |
| 90 | - if ( is_null($this->httpver) ) curl_setopt($oCurl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
|
| 90 | + if (is_null($this->httpver)) curl_setopt($oCurl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
|
| 91 | 91 | else curl_setopt($oCurl, CURLOPT_HTTP_VERSION, $this->httpver); |
| 92 | 92 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
| 93 | 93 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
@@ -87,8 +87,11 @@ |
||
| 87 | 87 | curl_setopt($oCurl, CURLOPT_CONNECTTIMEOUT, $this->soaptimeout); |
| 88 | 88 | curl_setopt($oCurl, CURLOPT_TIMEOUT, $this->soaptimeout + 20); |
| 89 | 89 | curl_setopt($oCurl, CURLOPT_HEADER, 1); |
| 90 | - if ( is_null($this->httpver) ) curl_setopt($oCurl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
|
| 91 | - else curl_setopt($oCurl, CURLOPT_HTTP_VERSION, $this->httpver); |
|
| 90 | + if ( is_null($this->httpver) ) { |
|
| 91 | + curl_setopt($oCurl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
|
| 92 | + } else { |
|
| 93 | + curl_setopt($oCurl, CURLOPT_HTTP_VERSION, $this->httpver); |
|
| 94 | + } |
|
| 92 | 95 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
| 93 | 96 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
| 94 | 97 | if (!$this->disablesec) { |