Skip to content

Commit

Permalink
Oops, forgot the upload streams...
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Aug 7, 2024
1 parent a7cf93b commit 5b0ce11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transport/internet/splithttp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func (c *DefaultDialerClient) SendUploadRequest(ctx context.Context, url string,
}
req.ContentLength = contentLength
req.Header = c.transportConfig.GetRequestHeader()
// Tell the middleboxes to expect an SSE response
splitHttpWriteHeaderWhenEmpty(&req.Header, "Accept", "text/event-stream")
// Tell the middleboxes to not serve from cache altogether
splitHttpWriteHeaderWhenEmpty(&req.Header, "Cache-Control", "no-cache")

if c.isH2 || c.isH3 {
resp, err := c.upload.Do(req)
Expand Down

0 comments on commit 5b0ce11

Please sign in to comment.