Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TransferEncoding (0.13 sec)

  1. src/net/http/request_test.go

    	req.TransferEncoding[0] = "encoding2"
    
    	if req.TransferEncoding[0] != "encoding2" {
    		t.Error("expected req.TransferEncoding to be changed")
    	}
    	if clonedReq.TransferEncoding[0] != "encoding1" {
    		t.Error("expected clonedReq.TransferEncoding to be unchanged")
    	}
    }
    
    // Ensure that Request.Clone works correctly with PathValue.
    // See issue 64911.
    func TestRequestClonePathValue(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. src/net/http/clientserver_test.go

    		t.Errorf("expected ContentLength of %d; got %d", e, g)
    	}
    	wantTE := []string{"chunked"}
    	if mode == http2Mode {
    		wantTE = nil
    	}
    	if !reflect.DeepEqual(res.TransferEncoding, wantTE) {
    		t.Errorf("TransferEncoding = %v; want %v", res.TransferEncoding, wantTE)
    	}
    	if got, haveCL := res.Header["Content-Length"]; haveCL {
    		t.Errorf("Unexpected Content-Length: %q", got)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top