Commits

Carlo Cabanilla committed 4e67cdd

remove the url fragment before parsing the query string

  • Participants
  • Parent commits 386a854

Comments (0)

Files changed (1)

File webtest/__init__.py

         environ = self._make_environ(extra_environ)
         # Hide from py.test:
         __tracebackhide__ = True
+        url = self._remove_fragment(url)
         if params:
             if not isinstance(params, (str, unicode)):
                 params = urllib.urlencode(params, doseq=True)
             url, environ['QUERY_STRING'] = url.split('?', 1)
         else:
             environ['QUERY_STRING'] = ''
-        url = self._remove_fragment(url)
         req = self.RequestClass.blank(url, environ)
         if headers:
             req.headers.update(headers)