Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ouch, I was sleepy

  • Loading branch information...
commit 47518acea244d6f86c08e0c598f32b78ea9f7bbf 1 parent 77f2068
@SAPikachu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_livejs2/middleware.py
View
4 django_livejs2/middleware.py
@@ -40,8 +40,8 @@ def inject_script_if_necessary(response):
def process(request, response):
if request.GET.get("live", None) == "0":
response.delete_cookie(COOKIE_NAME)
- elif (request.COOKIES.get("live", False) or
- request.GET.get(COOKIE_NAME, False)):
+ elif (request.COOKIES.get(COOKIE_NAME, False) or
+ request.GET.get("live", False)):
# After a bit of thinking, I can't find any real use of this setting.
# But since it has been written, just leave it here.
Please sign in to comment.
Something went wrong with that request. Please try again.