diff --git a/README.md b/README.md index a2a32b4..a4613b0 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ from sanic import Sanic from sanic.response import text from sanic_session import Session, InMemorySessionInterface -app = Sanic() +app = Sanic(name="ExampleApp") session = Session(app, interface=InMemorySessionInterface()) @app.route("/") @@ -46,7 +46,7 @@ async def index(request): request.ctx.session['foo'] += 1 - return text(request.ctx.session['foo']) + return text(str(request.ctx.session["foo"])) if __name__ == "__main__": app.run(host="0.0.0.0", port=8000)