- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for serveContent (0.38 sec)
-
src/net/http/fs_test.go
for _, r := range []string{ "bytes=0-128", "bytes=1-", } { rec := httptest.NewRecorder() req := httptest.NewRequest("GET", "/", nil) req.Header.Set("Range", r) ServeContent(rec, req, "nothing", time.Now(), bytes.NewReader(nil)) res := rec.Result() if res.StatusCode != 200 { t.Errorf("code = %v; want 200", res.Status) } bodyLen := rec.Body.Len() if bodyLen != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0)