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

dashofcode / tracker_api / 330
97%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2017 10:16PM UTC
Jobs 4
Files 62
Run time 10s
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
330

push

travis-ci

forest
Handle non-JSON responses (#118)

* Only try to parse JSON for json-related content-types
* Specify that the client accepts application/json

Responses to attachment upload requests return a JSON body with the Content-Type header set to 'text/html'. If we sepcify that we accept 'application/json', then the server will return the proper Content-Type header. This required a re-run of VCRs.

From the docs:

Note that the Content-type of the server response can lie. This behavior, while not strictly correct according to the protocol, is intended. There is a bug in Microsoft Internet Explorer that will cause it to navigate away from a page executing a JavaScript client app at the end of an upload if the server returns the (correct) type of application/json. The server will return the correct Content-type, instead of text/html, if the client includes application/json in the request's Accept header.

Source: https://www.pivotaltracker.com/help/api/#Uploading_File_Attachments

1537 of 1585 relevant lines covered (96.97%)

1056.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 330.1 (2.1) 31 Oct 2017 10:16PM UTC 0
96.97
Travis Job 330.1
2 330.2 (2.2) 31 Oct 2017 10:16PM UTC 0
96.97
Travis Job 330.2
3 330.3 (2.3) 31 Oct 2017 10:16PM UTC 0
96.97
Travis Job 330.3
4 330.4 (2.4) 31 Oct 2017 10:16PM UTC 0
96.97
Travis Job 330.4
Source Files on build 330
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #330
  • 56fbf996 on github
  • Prev Build on master (#328)
  • Next Build on master (#332)
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