Skip to content

Commit 98a72b6

Browse files
authored
1 parent 4f6f126 commit 98a72b6

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

core/core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
var (
2020
Version_x byte = 24
2121
Version_y byte = 11
22-
Version_z byte = 21
22+
Version_z byte = 30
2323
)
2424

2525
var (

transport/internet/splithttp/hub.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Req
159159
errors.LogInfoInner(context.Background(), err, "failed to upload (PushReader)")
160160
writer.WriteHeader(http.StatusConflict)
161161
} else {
162-
if request.Header.Get("Content-Type") == "application/grpc" {
163-
writer.Header().Set("Content-Type", "application/grpc")
164-
}
165162
writer.WriteHeader(http.StatusOK)
166163
<-request.Context().Done()
167164
}
@@ -227,9 +224,7 @@ func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Req
227224
// teeing the response stream into their cache, causing slowdowns.
228225
writer.Header().Set("Cache-Control", "no-store")
229226

230-
if request.Header.Get("Content-Type") == "application/grpc" {
231-
writer.Header().Set("Content-Type", "application/grpc")
232-
} else if !h.config.NoSSEHeader {
227+
if !h.config.NoSSEHeader {
233228
// magic header to make the HTTP middle box consider this as SSE to disable buffer
234229
writer.Header().Set("Content-Type", "text/event-stream")
235230
}

0 commit comments

Comments
 (0)