Merge pull request #1129 from cloudship/patch-1

raw requires a bytes-like object
This commit is contained in:
Raphael Deem 2018-02-14 20:44:40 -08:00 committed by GitHub
commit 0cbea0f5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ from sanic import response
@app.route('/raw')
def handle_request(request):
return response.raw('raw data')
return response.raw(b'raw data')
```
## Modify headers or status