Skip to content

Commit c01673c

Browse files
authored
Fix request method
1 parent 765cf0d commit c01673c

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
@@ -146,7 +146,7 @@ c.SetParamValues("1", "[email protected]")
146146
```go
147147
q := make(url.Values)
148148
q.Set("email", "[email protected]")
149-
req := httptest.NewRequest(http.MethodPost, "/?"+q.Encode(), nil)
149+
req := httptest.NewRequest(http.MethodGet, "/?"+q.Encode(), nil)
150150
```
151151

152152
## Testing Middleware

0 commit comments

Comments
 (0)