Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cleanPath (0.54 sec)

  1. src/net/http/pattern.go

    	// At this point, rest is the path.
    	off += i
    
    	// An unclean path with a method that is not CONNECT can never match,
    	// because paths are cleaned before matching.
    	if method != "" && method != "CONNECT" && rest != cleanPath(rest) {
    		return nil, errors.New("non-CONNECT pattern with unclean path can never match")
    	}
    
    	seenNames := map[string]bool{} // remember wildcard names to catch dups
    	for len(rest) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top