Nicolas Martyanoff on Nostr: Fun fact, with #Go's standard HTTP router, ServeMux, HEAD requests will match routes ...
Fun fact, with #Go's standard HTTP router, ServeMux, HEAD requests will match routes defined with an explicit GET method. This is documented but unexpected. Why would you accept anything but the method that was explicitely specified?
Published at
2024-12-03 15:07:52Event JSON
{
"id": "8fb309aa0198b65652d08a404f7910141ead34e9d619cebe8c5b5b915df5faa4",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1733238472,
"kind": 1,
"tags": [
[
"t",
"go"
],
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/113589516535035304",
"activitypub"
]
],
"content": "Fun fact, with #Go's standard HTTP router, ServeMux, HEAD requests will match routes defined with an explicit GET method. This is documented but unexpected. Why would you accept anything but the method that was explicitely specified?",
"sig": "cd10b6495e5a1252c542d3aecfbd80dd13576e4866ea17cebce6ebb17a02d41217073b6bb466035352c3e2fe5a1013fd8b99722536267422d7353ae70b1a7e59"
}