couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [09/11] chttpd commit: updated refs/heads/master to 238b8c4
Date Wed, 12 Aug 2015 15:54:33 GMT
Use `#httpd.qs` field


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/4ba06e0c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/4ba06e0c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/4ba06e0c

Branch: refs/heads/master
Commit: 4ba06e0c290fef1f3324271db9f93f0ca3dee5e6
Parents: b5d65ea
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Fri Jul 31 06:27:20 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Aug 11 09:14:29 2015 -0700

----------------------------------------------------------------------
 src/chttpd.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/4ba06e0c/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index ec15033..749f550 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -480,8 +480,10 @@ qs_json_value(Req, Key, Default) ->
             ?JSON_DECODE(Result)
     end.
 
-qs(#httpd{mochi_req=MochiReq}) ->
-    MochiReq:parse_qs().
+qs(#httpd{mochi_req = MochiReq, qs = undefined}) ->
+    MochiReq:parse_qs();
+qs(#httpd{qs = QS}) ->
+    QS.
 
 path(#httpd{mochi_req=MochiReq}) ->
     MochiReq:get(path).


Mime
View raw message