return method not allowed error #152
@@ -117,7 +117,7 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 | 
				
			|||||||
			handler = hdlr
 | 
								handler = hdlr
 | 
				
			||||||
			break
 | 
								break
 | 
				
			||||||
		} else if err == rhttp.ErrMethodNotAllowed && !h.registerRPC {
 | 
							} else if err == rhttp.ErrMethodNotAllowed && !h.registerRPC {
 | 
				
			||||||
			h.errorHandler(ctx, nil, w, r, fmt.Errorf("not matching route found"), http.StatusNotFound)
 | 
								h.errorHandler(ctx, nil, w, r, fmt.Errorf("not matching route found"), http.StatusMethodNotAllowed)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user