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

danielstocks / yak / 39
100%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2017 10:27PM UTC
Jobs 1
Files 2
Run time 0s
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
39

push

travis-ci

Daniel Stocks
Fixed Naive Parsing of Content-Type HTTP header

It turns out checking for exactly "application/json" is a bad idea since
some servers/web frameworks include stuff like encoding in the header.
For example: Express.js since 4.16.x now set's the content-type header
to: 'application/json; charset=utf-8'.

To remedy this, we now check for the inclusion of application/json in
the string, but don't attempt to match the exact value

31 of 32 branches covered (96.88%)

52 of 52 relevant lines covered (100.0%)

2.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39.1 28 Oct 2017 10:27PM UTC 0
100.0
Travis Job 39.1
Source Files on build 39
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #39
  • 6b0646e3 on github
  • Prev Build on master (#38)
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

© 2026 Coveralls, Inc