I tried googling this, but couldn't find anything. A common issue when using the http package and registering handles is the need to register a handler for "domain.com" that does not catch "domain.com/otherStuff". Since any pattern ending in a "/" matches paths prefixed with the pattern, providing "/" as a pattern matches both "domain.com" as well as "domain.com/asdf".
With longer patterns the corresponding issue is easily dealt with by omitting the trailing "/" in the pattern. I was wondering if it makes sense to change the http package a bit and use the empty pattern "" to match only "domain.com", but not longer paths. This change would be fairly consistent with how specific matches work in other cases (remove trailing "/") and should not change the behavior of existing code, since providing "" as a pattern results in a panic at the moment. What did I miss? Best regards, Florian -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.