Przeglądaj źródła

Use http_method params instead of hard-coded value for add_view

Guénaël Muller 6 lat temu
rodzic
commit
cbf738d6dc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      hapic/ext/pyramid/context.py

+ 1 - 1
hapic/ext/pyramid/context.py Wyświetl plik

@@ -158,7 +158,7 @@ class PyramidContext(BaseContext):
158 158
         self.configurator.add_route(
159 159
             name=route,
160 160
             path=route,
161
-            request_method='GET'
161
+            request_method=http_method
162 162
         )
163 163
 
164 164
         self.configurator.add_view(