mccutchen / go-httpbin

A reasonably complete and well-tested golang port of httpbin, with zero dependencies outside the go stdlib.
https://httpbingo.org
MIT License
596 stars 124 forks source link

Enable all Methods on basic-auth #163

Closed mgeuer closed 9 months ago

mgeuer commented 9 months ago

Can we enable basic auth for all methods (GET, POST, PUT, DELETE, PATCH) by adding all methods on httpbin: mux.HandleFunc("/basic-auth/", methods(h.BasicAuth, "GET", "POST", "PUT", "DELETE", "PATCH"))

mccutchen commented 9 months ago

Sure, seems like a good addition! Want to open a PR?

mccutchen commented 9 months ago

Fixed in #166