diff --git a/docs/sanic/response.md b/docs/sanic/response.md index 9c3c95f7..f322f8c8 100644 --- a/docs/sanic/response.md +++ b/docs/sanic/response.md @@ -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