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

danielstocks / yak / 39 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2017 10:27PM UTC
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

28 Oct 2017 10:27PM UTC coverage: 100.0%. Remained the same
39.1

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

Source Files on job 39.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 39
  • Travis Job 39.1
  • 6b0646e3 on github
  • Prev Job for on master (#38.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

© 2026 Coveralls, Inc