From d5a6faf141a57eaf9a0360b0c29b01e3a77598d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D0=B2=D0=BE=D0=B2=20=D0=90=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Fri, 11 Nov 2016 12:44:17 +0300 Subject: [PATCH] - errors duplicate fix - query params bad keys fix - MultiDict error in POST/PUT methods fix --- djaio/core/methods.py | 2 +- djaio/tests/data/conf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djaio/core/methods.py b/djaio/core/methods.py index 6ca760e..195d0a4 100644 --- a/djaio/core/methods.py +++ b/djaio/core/methods.py @@ -63,7 +63,7 @@ async def from_http(self, request): req_params = {} # if GET or DELETE we read a query params if request.method in (METH_GET, METH_DELETE): - req_params = self.process_request(request.rel_url.query) + req_params = self.process_request(request.GET) # else we read a POST-data elif request.method in (METH_PUT, METH_POST): try: diff --git a/djaio/tests/data/conf.py b/djaio/tests/data/conf.py index 6753109..1b42a1b 100644 --- a/djaio/tests/data/conf.py +++ b/djaio/tests/data/conf.py @@ -484,4 +484,4 @@ "But now...\u001b[20Cfor my greatest trick...\u001b[8m", "The quic\b\b\b\b\b\bk brown fo\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007\u0007x... [Beeeep]", "Powerلُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ冗" -] \ No newline at end of file +]