Fix POST to http.MethodPost

This commit is contained in:
178inaba 2017-04-14 23:59:11 +09:00
parent b4e56b6ff8
commit 9dee3fc07f
4 changed files with 11 additions and 11 deletions

View file

@ -195,7 +195,7 @@ func TestGetAccountFollowing(t *testing.T) {
func TestRegisterApp(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != "POST" {
if r.Method != http.MethodPost {
http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
return
}