|
Ran
|
Files
1
|
Run time
0s
|
Badge
README BADGES
|
push
travis-ci
fix missing content-type bug (#45) * fix missing content-type bug setting response.status to 304 removes the 'content-type' header as a side effect (see https://github.com/koajs/koa/blob/a293cc2d5/test/response/status.js#L120) When the first request of a path that is 'fresh', the browser that makes the request will not suffer an issue, but a subsequent request from another browser (who doesn't have a cached result) will get a cached result without the content type. The fix simply delays setting of response.status until after extracting the content type. * fix 'standard' issue
59 of 62 relevant lines covered (95.16%)
9.0 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|