• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bigcommerce / bigcommerce-api-php / 230 / 1
71%
master: 71%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2017 12:08PM UTC
Files 37
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Apr 2017 12:05PM UTC coverage: 69.557% (-0.4%) from 69.944%
230.1

Pull #196

travis-ci

web-flow
fix getHeader to be case-insensitive

www.campman.com returns the  "X-BC-ApiLimit-Remaining" header in all lower-case, like "x-bc-apilimit-remaining".   The getRequestsRemaining can not find the header, and returns 0 as the limit every time.  I patched the getHeader function so it will look for the header key using a case-insensitive search, if it can't find an exact match using the hash lookup.  Now, getRequestsRemaining returns the expected number of API requests remaining.  Note that RFC2616 states that field names in the HTTP header are case-insensitive, so this is the correct thing to do.
Pull Request #196: Fix getHeader to be case-insensitive

377 of 542 relevant lines covered (69.56%)

8.8 hits per line

Source Files on job 230.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 230
  • Travis Job 230.1
  • e1f47ad7 on github
  • Prev Job for on master (#228.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc