Skip to content

Commit 9921fad

Browse files
Merge pull request #1 from mananispiwpiw/mananispiwpiw-patch-1
Update A-client-http-request-simple.md
2 parents 9c6ed8f + 024c113 commit 9921fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/A-client-http-request-simple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func fetchUsers() ([]student, error) {
3636
var client = &http.Client{}
3737
var data []student
3838

39-
request, err := http.NewRequest("POST", baseURL+"/users", nil)
39+
request, err := http.NewRequest("GET", baseURL+"/users", nil)
4040
if err != nil {
4141
return nil, err
4242
}

0 commit comments

Comments
 (0)