Ran
|
Files
27
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/inveniosoftware/invenio-files-rest/commit/<a class=hub.com/inveniosoftware/invenio-files-rest/commit/4ba19081e738bac8c00e0ddbbc95499ab54ba009">4ba19081e<a href="https://github.com/inveniosoftware/invenio-files-rest/commit/4ba19081e738bac8c00e0ddbbc95499ab54ba009">">views: detect if input stream was already read * In the case of having an external library which has already read the `request.stream` files REST fails with a server error since it will not be able to read the uploaded file (closes #197). This has happened with Sentry&#39;s `raven-python` library which reads the stream when the mimetype is `application/json` causing JSON files uploads to not work and throwing a misleading error. More here https://github.com/getsentry/raven-python/blob/</a><a class="double-link" href="https://github.com/inveniosoftware/invenio-files-rest/commit/<a class="double-link" href="https://github.com/inveniosoftware/invenio-files-rest/commit/719be9afae528962e683d086f9c2ceeda07f881b">719be9afa</a>">719be9afa</a><a href="https://github.com/inveniosoftware/invenio-files-rest/commit/4ba19081e738bac8c00e0ddbbc95499ab54ba009">/raven/contrib/flask.py#L198
1730 of 1812 relevant lines covered (95.47%)
0.95 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|