Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-mem3/pull/16#discussion_r41783142
  
    --- Diff: src/mem3_httpd.erl ---
    @@ -44,7 +46,12 @@ handle_shards_req(#httpd{method='GET',
         couch_httpd:send_json(Req, {[
             {range, Shard},
             {nodes, Dbs}
    -    ]}).
    +    ]});
    +handle_shards_req(#httpd{path_parts=[_DbName, <<"_shards">>]}=Req, _Db) ->
    +    chttpd:send_method_not_allowed(Req, "GET");
    +handle_shards_req(#httpd{path_parts=[_DbName, <<"_shards">>, _DocId]}=Req, 
_Db) ->
    --- End diff --
    
    So cowboy, not webmachine? Cool! Really cool! 
    Meanwhile, I'll try to make a patch for chttpd to handle all unmatched 
requests and return HTTP 404 instead of HTTP 500. Should help until we move.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to