Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReadMIMEHeaderNonCompliant (0.34 sec)

  1. src/net/textproto/reader_test.go

    	if cookie != sdata {
    		t.Fatalf("ReadMIMEHeader: %v bytes, want %v bytes", len(cookie), len(sdata))
    	}
    }
    
    // TestReadMIMEHeaderNonCompliant checks that we don't normalize headers
    // with spaces before colons, and accept spaces in keys.
    func TestReadMIMEHeaderNonCompliant(t *testing.T) {
    	// These invalid headers will be rejected by net/http according to RFC 7230.
    	r := reader("Foo: bar\r\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top