This commit is contained in:
crusader 2017-10-26 00:32:56 +09:00
parent 267d8ac0e1
commit 7df25e4e8e

View File

@ -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