Skip to content

Version 1.2 Mandatory upgrade of rest_proxy.php

Compare
Choose a tag to compare
@perrytew perrytew released this 02 Apr 19:42
· 27 commits to master since this release

This release is considered a mandatory upgrade. Of this release, the changes in the rest_proxy.php script are most important.
Please upgrade your rest_proxy.php scripts as soon as possible. Doing so will prevent issues with your site. Additionally,
we've added a proxy version header that will allow us to track which merchants might have out of date proxy scripts in the
future. This could prove vital to rapidly addressing any compatibility issues that might arise from future server updates.

rest_proxy.php changes:

  • Fixes for content-length being sent down when original response was gziped. Would cause the client problem if the server running the proxy wasn't gziping it as well
  • We have disabled gzip upstream until 4/15/2015 at which point everyone should have their proxy scripts upgraded.
  • Added a flag that can be set to enable debugging to the error_log instead of having to uncomment all the statements.
  • Change SSL certificate verify flag.
  • Set an empty Expect header in the request to prevent curl from sending the Expect: 100-Continue header.
  • Simplify the HTTP 100 Continue header trimming and allow for multiple of them
  • Close out the curl handle sooner.
  • Add a proxy version number to the header so we can tell from the server side if people are running out of date proxie