couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r644663 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
Date Fri, 04 Apr 2008 09:50:59 GMT
Author: jan
Date: Fri Apr  4 02:50:57 2008
New Revision: 644663

URL: http://svn.apache.org/viewvc?rev=644663&view=rev
Log:
Be more graceful with empty query argument values.

Modified:
    incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl?rev=644663&r1=644662&r2=644663&view=diff
==============================================================================
--- incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl Fri Apr  4 02:50:57 2008
@@ -225,7 +225,7 @@
 
 handle_db_request(Req, Method, {DbName, Db, ["_fulltext"]}) ->
     case Req:parse_qs() of 
-        [{"q", Query}] ->
+        [{"q", Query}] when (length(Query) > 0)->
             {ok, Response} = couch_ft_query:execute(DbName, Query),
             send_json(Req, {obj, [{ok, true} | Response]});
         _Error ->



Mime
View raw message