So I've built a webserver in which I want to have a http.Handle that any
URL starting with http://www.mywebsite.com/download/ sends to the handle.
So I want the handler to match:
Reading the ServerMux part of the http package, it seems to indicate that
as long as I don't register another longer URL, this one should match.
However, in the example below, the Handle I register will be called if I
It will not answer (I'll get a 404) if I do:
My registration code:
http.Handle("/download", http.HandlerFunc(func(w http.ResponseWriter, r
Can anyone point me at what I'm doing wrong here? The only other handler I
registered is "/".
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.