Last active
December 21, 2016 14:27
-
-
Save mrpunkin/5324955 to your computer and use it in GitHub Desktop.
Fix to re-process header if initial header is 100 Continue in Amazon MWS Fulfillment Outbound Shipment PHP client library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ... | |
| //// Starting @ line 635 of FBAOutboundServiceMWS/Client.php | |
| list($other, $responseBody) = explode("\r\n\r\n", $response, 2); | |
| $other = preg_split("/\r\n|\n|\r/", $other); | |
| list($protocol, $code, $text) = explode(' ', trim(array_shift($other)), 3); | |
| // Re-check for new header after continue header. | |
| if((int)$code == 100){ | |
| list($other, $responseBody) = explode("\r\n\r\n", $responseBody, 2); | |
| $other = preg_split("/\r\n|\n|\r/", $other); | |
| list($protocol, $code, $text) = explode(' ', trim(array_shift($other)), 3); | |
| } | |
| ... | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍