Merge pull request #1129 from cloudship/patch-1
raw requires a bytes-like object
This commit is contained in:
commit
0cbea0f5d3
|
@ -91,7 +91,7 @@ from sanic import response
|
||||||
|
|
||||||
@app.route('/raw')
|
@app.route('/raw')
|
||||||
def handle_request(request):
|
def handle_request(request):
|
||||||
return response.raw('raw data')
|
return response.raw(b'raw data')
|
||||||
```
|
```
|
||||||
|
|
||||||
## Modify headers or status
|
## Modify headers or status
|
||||||
|
|
Loading…
Reference in New Issue
Block a user