You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl -X GET --verbose 127.0.0.1:8080/ping0
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET /ping0 HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Wed, 13 Nov 2024 04:42:42 GMT
< Content-Length: 19
<
404 page not found
* Connection #0 to host 127.0.0.1 left intact
$ curl -X GET --verbose 127.0.0.1:8080/ping1
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET /ping1 HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Date: Wed, 13 Nov 2024 04:42:44 GMT
< Content-Length: 0
<
* Connection #0 to host 127.0.0.1 left intact
What did you expect to see?
Two curl commands above, work the same.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.23.3 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
With the blow code running, go with
curl -X GET --verbose 127.0.0.1:8080/ping0
andcurl -X GET --verbose 127.0.0.1:8080/ping1
What did you see happen?
What did you expect to see?
Two
curl
commands above, work the same.The text was updated successfully, but these errors were encountered: