Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for matchOrRedirect (0.12 sec)

  1. src/net/http/server.go

    		// but the path canonicalization does not.
    		_, _, u := mux.matchOrRedirect(host, r.Method, path, r.URL)
    		if u != nil {
    			return RedirectHandler(u.String(), StatusMovedPermanently), u.Path, nil, nil
    		}
    		// Redo the match, this time with r.Host instead of r.URL.Host.
    		// Pass a nil URL to skip the trailing-slash redirect logic.
    		n, matches, _ = mux.matchOrRedirect(r.Host, r.Method, path, nil)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top