fix #26
This commit is contained in:
1 parent
09f4d90142
commit
109f27170a
3 files changed
+5
-3
No files matched your search
+2
-1
@@ -1,6 +1,7 @@
|
||||
package editor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -18,6 +19,6 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, e
|
||||
case "GET":
|
||||
return GET(w, r, c, filename)
|
||||
default:
|
||||
return 400, nil
|
||||
return 400, errors.New("Invalid method.")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user