diff --git a/examples/python/guestbook/add.py b/examples/python/guestbook/add.py index 5e923457..f7a747ae 100644 --- a/examples/python/guestbook/add.py +++ b/examples/python/guestbook/add.py @@ -13,4 +13,6 @@ def main(): # back to the list item = request.form['text'] redisConnection.rpush('guestbook', item) - return redirect('/guestbook', code=303) + r = redirect('/guestbook', code=303) + r.autocorrect_location_header = False + return r