sanic/tests/static
Cosmo Borsky b238be54a4 Add content_type flag to Sanic.static (#1267)
* Add content_type flag to Sanic.static

Fixes #1266

* Fix flake8 error in travis

Add line to document `content_type` arg

* Fix content_type for file streams

Update tests

herp derp

* Remove content_type as an arg to HTTPResponse

`response.HTTPResponse` will default to `headers['Content-Type']` instead of `content_type`
https://github.com/channelcat/sanic/pull/1267#discussion_r204190913
2018-07-20 22:31:15 -07:00
..
bp use url_for for url building for static files 2017-09-06 19:17:52 +08:00
decode me.txt Fixes errors related to #378 2017-02-08 19:59:34 -06:00
python.png 1. try...catch aiohttp encode response body to text in test_client 2017-03-23 15:22:00 +08:00
test.file Rewrite static files tests 2016-12-24 18:18:56 -08:00
test.html Add content_type flag to Sanic.static (#1267) 2018-07-20 22:31:15 -07:00