Skip to content

Commit df6db59

Browse files
author
Pat Patterson
committed
Merge pull request developerforce#19 from cwarden/soap-support
Add support for SOAP API in PHP Proxy
2 parents 74b2cdd + fd049d8 commit df6db59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@
260260
// Pass through the Content-Type header
261261
array_push($headers, "Content-Type: ".$_SERVER['CONTENT_TYPE'] );
262262
}
263+
if ( isset($_SERVER['HTTP_SOAPACTION']) ) {
264+
// Pass through the SOAPAction header
265+
array_push($headers, "SOAPAction: ".$_SERVER['HTTP_SOAPACTION'] );
266+
}
263267
if ( isset($_SERVER['HTTP_X_USER_AGENT']) ) {
264268
// Pass through the X-User-Agent header
265269
array_push($headers, "X-User-Agent: ".$_SERVER['HTTP_X_USER_AGENT'] );

0 commit comments

Comments
 (0)