Skip to content

Commit 967845e

Browse files
authored
Merge pull request #141 from mosaxiv/patch-1
Fix request method
2 parents ec9f6c5 + c01673c commit 967845e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/content/guide/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ c.SetParamValues("1", "[email protected]")
148148
// import "net/url"
149149
q := make(url.Values)
150150
q.Set("email", "[email protected]")
151-
req := httptest.NewRequest(http.MethodPost, "/?"+q.Encode(), nil)
151+
req := httptest.NewRequest(http.MethodGet, "/?"+q.Encode(), nil)
152152
```
153153

154154
## Testing Middleware

0 commit comments

Comments
 (0)