is there a reason that http.Client doesn't follow redirects for DELETE requests?the source code for Client.Do (http://golang.org/src/pkg/net/http/client.go#L127) shows that HEAD and GET requests follow one set of redirects, and POST and PUT follow another. Everything else doesn't follow a redirect. I would think, though, that DELETE requests should follow in line with POST and PUT, especially since, after a DELETE request, there generally isn't anything left at the requested resource
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Not saying your wrong, but the spec also doesn't say anything about 301s or 302s in the GET, HEAD, and POST methods.
PUT seems to be a special case because you're never should mod_rewrite it to modify another resource and should just tell the client what that other resource is. I now know I have been guilty of violating this aspect of the spec, but I am not sure how valid it is once you get into dynamic content.