Import from https://code.google.com/p/rsc/source/browse/websrv/mux.go