Browse Source

s/GET/POST/

kegan/get-service
Kegan Dougal 8 years ago
parent
commit
4c340dd016
  1. 2
      src/github.com/matrix-org/go-neb/api.go

2
src/github.com/matrix-org/go-neb/api.go

@ -235,7 +235,7 @@ type getServiceHandler struct {
}
func (h *getServiceHandler) OnIncomingRequest(req *http.Request) (interface{}, *errors.HTTPError) {
if req.Method != "GET" {
if req.Method != "POST" {
return nil, &errors.HTTPError{nil, "Unsupported Method", 405}
}
var body struct {

Loading…
Cancel
Save