(t testing.TB, resp *http.Response)
| 649 | } |
| 650 | |
| 651 | func assertSSEHeaders(t testing.TB, resp *http.Response) { |
| 652 | t.Helper() |
| 653 | assert.Equal(t, "no-cache, no-store, must-revalidate", resp.Header.Get("Cache-Control")) |
| 654 | assert.Equal(t, "no-cache", resp.Header.Get("Pragma")) |
| 655 | assert.Equal(t, "0", resp.Header.Get("Expires")) |
| 656 | assert.Equal(t, "no", resp.Header.Get("X-Accel-Buffering")) |
| 657 | assert.Equal(t, "no", resp.Header.Get("X-Proxy-Buffering")) |
| 658 | assert.Equal(t, "keep-alive", resp.Header.Get("Connection")) |
| 659 | } |
| 660 | |
| 661 | func TestServer_UploadFiles(t *testing.T) { |
| 662 | t.Parallel() |
no outgoing calls
no test coverage detected