You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/04/04 11:50:59 UTC
svn commit: r644663 -
/incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
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 ->