- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestServeContentWithEmptyContentIgnoreRanges (0.29 sec)
-
src/net/http/fs_test.go
res := rec.Result() if res.StatusCode != 301 { t.Errorf("code = %v; want 301", res.Status) } } // Tests that ranges are ignored with serving empty content. (Issue 54794) func TestServeContentWithEmptyContentIgnoreRanges(t *testing.T) { for _, r := range []string{ "bytes=0-128", "bytes=1-", } { rec := httptest.NewRecorder() req := httptest.NewRequest("GET", "/", nil) req.Header.Set("Range", r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0)