Skip to content

Commit

Permalink
Merge pull request sanic-org#1129 from cloudship/patch-1
Browse files Browse the repository at this point in the history
raw requires a bytes-like object
  • Loading branch information
r0fls authored Feb 15, 2018
2 parents ad8a168 + e735fe5 commit 0cbea0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sanic/response.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cbea0f

Please sign in to comment.