ing
This commit is contained in:
parent
267d8ac0e1
commit
7df25e4e8e
|
@ -11,7 +11,7 @@ type HTTPAdapter struct {
|
|||
}
|
||||
|
||||
// ServeHTTP
|
||||
func ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
func (a *HTTPAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method != "POST" {
|
||||
WriteError(w, 405, "rpc: POST method required, received "+r.Method)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user