Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validCookieValueByte (0.25 sec)

  1. src/net/http/cookie.go

    func sanitizeCookieValue(v string, quoted bool) string {
    	v = sanitizeOrWarn("Cookie.Value", validCookieValueByte, v)
    	if len(v) == 0 {
    		return v
    	}
    	if strings.ContainsAny(v, " ,") || quoted {
    		return `"` + v + `"`
    	}
    	return v
    }
    
    func validCookieValueByte(b byte) bool {
    	return 0x20 <= b && b < 0x7f && b != '"' && b != ';' && b != '\\'
    }
    
    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