featurebase/http
Seebs ce815471fe Drop now-superfluous methodNotAllowedHandler
Long ago, the maintainers of gorilla/mux concluded that
it was a "wontfix" to return StatusMethodNotAllowed instead
of StatusNotFound for a method mismatch. Pilosa had a
workaround for this for the most common case (GET requests
to /index/{index}/query), and a TODO to address the other
cases.

While browsing the go-pilosa client code, I noticed that there
is a test for roaring import support which relies on getting
StatusMethodNotAllowed.  But how can this work, if gorilla/mux
doesn't do that?

Answer: They started doing it in mid-2017, apparently:
	https://github.com/gorilla/mux/issues/271

Dropping this code changes the exact text of the message
produced for that one case, but not the status code,
and makes the behavior less confusing.
2018-11-01 12:59:58 -05:00
..
client.go consolidate ImportOptions setup. use url.Values{}. fix comments. 2018-10-23 17:37:57 -05:00
client_test.go handle clear flag on import roaring (http package) 2018-10-24 15:16:08 -05:00
error.go Fix linter issues: vet 2018-07-19 11:37:50 -05:00
handler.go Drop now-superfluous methodNotAllowedHandler 2018-11-01 12:59:58 -05:00
handler_internal_test.go index trackExistence is true by default 2018-10-01 17:45:21 +03:00
handler_test.go Merge branch 'develop' into newpql 2018-06-22 09:11:00 -05:00
translator.go added v2 notation 2018-10-17 17:58:52 -05:00
translator_test.go revert to existing api with panic per jaffee 2018-10-17 10:29:58 -05:00