Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mustHaveFieldNameColon (0.16 sec)

  1. src/net/textproto/reader.go

    // that permits any lines.
    func noValidation(_ []byte) error { return nil }
    
    // mustHaveFieldNameColon ensures that, per RFC 7230, the
    // field-name is on a single line, so the first line must
    // contain a colon.
    func mustHaveFieldNameColon(line []byte) error {
    	if bytes.IndexByte(line, ':') < 0 {
    		return ProtocolError(fmt.Sprintf("malformed MIME header: missing colon: %q", line))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top