Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getHeader to be case-insensitive #245

Merged
merged 2 commits into from
Jan 10, 2019

Commits on Jan 10, 2019

  1. Fix getHeader to be case-insensitive

    On certain BigCommerce stores, getHeader fails because the X-BC-ApiLimit-Remaining header is all lower-case in the HTTP response.  This causes getRequestsRemaining to always return 0 and puts the code into an infinite wait for more requests.  Instead, change getHeader to do a case-insensitive search for the header if the exact case is not found.  Please merge this into the trunk.
    atensoftware authored Jan 10, 2019
    Configuration menu
    Copy the full SHA
    34fca08 View commit details
    Browse the repository at this point in the history
  2. Update Connection.php

    atensoftware authored Jan 10, 2019
    Configuration menu
    Copy the full SHA
    324f91a View commit details
    Browse the repository at this point in the history