-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
When accessing a URL handled by a static route, which is a directory, the server responds with HTTP 200 AND HTTP 500 in the response body instead of just responding by e.g. Forbidden.
$ http http://localhost:5000/web/static/
HTTP/1.1 200 OK
CONTENT-LENGTH: 204
CONTENT-TYPE: application/octet-stream
DATE: Fri, 10 Jun 2016 17:27:48 GMT
LAST-MODIFIED: Wed, 08 Jun 2016 14:01:43 GMT
SERVER: Python/3.5 aiohttp/0.21.6
HTTP/1.1 500 Internal Server Error
CONTENT-TYPE: text/html; charset=utf-8
CONTENT-LENGTH: 170
CONNECTION: close
DATE: Fri, 10 Jun 2016 17:27:48 GMT
SERVER: Python/3.5 aiohttp/0.21.6
<html>
<hea
The route is added by calling
app.router.add_static("/web/static", "web/static")