Permalink
Browse files

Ouch, I was sleepy

  • Loading branch information...
1 parent 77f2068 commit 47518acea244d6f86c08e0c598f32b78ea9f7bbf @SAPikachu committed Oct 13, 2012
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.

0 comments on commit 47518ac

Please sign in to comment.