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

danielstocks / yak
100%

Build:
DEFAULT BRANCH: master
Repo Added 02 Oct 2015 07:23AM UTC
Files 2
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • ci
  • feature/collections
  • feature/nested-models
  • feature/parse
  • master
  • refactor/remove-lodash

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

Relevant lines Covered
Build:
Build:
52 RELEVANT LINES 52 COVERED LINES
2.92 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
39 master 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 con... push 28 Oct 2017 10:27PM UTC Daniel Stocks travis-ci pending completion  
38 master Made it possible to get a single resource without id push 20 Dec 2016 02:47PM UTC danielstocks travis-ci pending completion  
37 master 0.0.16 push 13 Apr 2016 11:45AM UTC danielstocks travis-ci pending completion  
35 master Added logo to docs push 21 Mar 2016 09:26AM UTC danielstocks travis-ci pending completion  
34 master Merge pull request #6 from danielstocks/refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:20AM UTC danielstocks travis-ci pending completion  
32 refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:19AM UTC danielstocks travis-ci pending completion  
31 refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:16AM UTC danielstocks travis-ci pending completion  
30 refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:15AM UTC danielstocks travis-ci pending completion  
29 refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:12AM UTC danielstocks travis-ci pending completion  
28 refactor/remove-lodash Removed lodash dependency push 21 Mar 2016 09:09AM UTC danielstocks travis-ci pending completion  
See All Builds (35)
  • Repo on GitHub
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