Skip to content

Commit fd049d8

Browse files
committed
Add support for SOAP API
Pass through SOAPAction header, necessary when proxying requests to the SOAP API.
1 parent 75c6fbf commit fd049d8

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)