Use PyAMSRequest class when creating new request from scratch
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Feb 2018 09:57:41 +0100
changeset 142 11be618da9c8
parent 141 48c64f62155e
child 143 0ee046374dae
Use PyAMSRequest class when creating new request from scratch
src/pyams_utils/request.py
--- a/src/pyams_utils/request.py	Mon Feb 19 09:50:16 2018 +0100
+++ b/src/pyams_utils/request.py	Mon Feb 19 09:57:41 2018 +0100
@@ -119,7 +119,7 @@
     try:
         return get_request()
     except MissingRequestError:
-        request = Request.blank(path, environ, base_url, headers, POST, **kwargs)
+        request = PyAMSRequest.blank(path, environ, base_url, headers, POST, **kwargs)
         if registry is None:
             registry = get_current_registry()
             if registry is None: