Browse Source

s/GET/POST/

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

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

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

Loading…
Cancel
Save