Fix POST to http.MethodPost
This commit is contained in:
parent
b4e56b6ff8
commit
9dee3fc07f
4 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue