Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validCookiePathByte (0.36 sec)

  1. src/net/http/cookie.go

    }
    
    // path-av           = "Path=" path-value
    // path-value        = <any CHAR except CTLs or ";">
    func sanitizeCookiePath(v string) string {
    	return sanitizeOrWarn("Cookie.Path", validCookiePathByte, v)
    }
    
    func validCookiePathByte(b byte) bool {
    	return 0x20 <= b && b < 0x7f && b != ';'
    }
    
    func sanitizeOrWarn(fieldName string, valid func(byte) bool, v string) string {
    	ok := true
    	for i := 0; i < len(v); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top