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

bigcommerce / bigcommerce-api-php / 230
71%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2017 12:07PM UTC
Jobs 5
Files 37
Run time 24s
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

pending completion
230

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

5 of 5 new or added lines in 1 file covered. (100.0%)

392 of 579 relevant lines covered (67.7%)

42.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
src/Bigcommerce/Api/Connection.php

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/Bigcommerce/Api/Connection.php
Jobs
ID Job ID Ran Files Coverage
1 230.1 14 Apr 2017 12:07PM UTC 0
69.56
Travis Job 230.1
2 230.2 14 Apr 2017 12:07PM UTC 0
67.65
Travis Job 230.2
3 230.3 14 Apr 2017 12:07PM UTC 0
67.65
Travis Job 230.3
4 230.4 14 Apr 2017 12:07PM UTC 0
67.65
Travis Job 230.4
5 230.5 14 Apr 2017 12:07PM UTC 0
67.65
Travis Job 230.5
Source Files on build 230
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #230
  • Pull Request #196
  • PR Base - master (#228)
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