Commits

Anonymous committed d4e1289

fix query_string bug

  • Participants
  • Parent commits 340ca1b

Comments (0)

Files changed (1)

File sape/templatetags/sape_extras.py

 
 
 def build_sape_client(request):
-    qs = request.META.get('QUERY_STRING', '')
+    # META['QUERY_STRING'] could be None
+    qs = request.META.get('QUERY_STRING') or ''
     uri = ''.join([request.path, len(qs) and '?' or '', qs])
     if hasattr(settings, 'SAPE_HOST'):
         host = settings.SAPE_HOST