Skip to content

Commit

Permalink
Merge pull request #1 from Sybit-GmbH/master
Browse files Browse the repository at this point in the history
Support of HTTP/1.1
  • Loading branch information
lflaszlo committed Dec 4, 2015
2 parents cf779e0 + 0ef7f9c commit c020c74
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nusphere/nusoap",
"version": "0.9.5",
"version": "0.9.6",
"type": "library",
"description": "NuSoap Repository for Composer with some fixes",
"authors": [
Expand Down
3 changes: 3 additions & 0 deletions lib/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -646,3 +646,6 @@
- nusoap_client: do not assign the return value of new by reference (it is deprecated) (thanks Pier-Luc Duchaine)
- nusoap_base: replace regex function calls (ereg, eregi, split) with PCRE calls (preg_match, preg_split) (thanks Pier-Luc Duchaine)
- nusoapmime: do not assign the return value of new by reference (it is deprecated)

2015-12-03, version 0.9.6
- soap_transport_http: added isSkippableCurlHeader() to support HTTP/1.1
15 changes: 8 additions & 7 deletions lib/class.soap_transport_http.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,13 +603,14 @@ function setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword =
*/
function isSkippableCurlHeader(&$data) {
$skipHeaders = array( 'HTTP/1.1 100',
'HTTP/1.0 301',
'HTTP/1.1 301',
'HTTP/1.0 302',
'HTTP/1.1 302',
'HTTP/1.0 401',
'HTTP/1.1 401',
'HTTP/1.0 200 Connection established');
'HTTP/1.0 301',
'HTTP/1.1 301',
'HTTP/1.0 302',
'HTTP/1.1 302',
'HTTP/1.0 401',
'HTTP/1.1 401',
'HTTP/1.0 200 Connection established',
'HTTP/1.1 200 Connection Established');
foreach ($skipHeaders as $hd) {
$prefix = substr($data, 0, strlen($hd));
if ($prefix == $hd) return true;
Expand Down
1 change: 1 addition & 0 deletions lib/class.wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class wsdl extends nusoap_base {
var $currentOperation;
var $portTypes = array();
var $currentPortType;
var $currentPortOperation = '';
var $bindings = array();
var $currentBinding;
var $ports = array();
Expand Down

0 comments on commit c020c74

Please sign in to comment.