|
|
@ -192,12 +192,15 @@ func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Req |
|
|
|
h.config.WriteResponseHeader(writer) |
|
|
|
h.config.WriteResponseHeader(writer) |
|
|
|
|
|
|
|
|
|
|
|
writer.WriteHeader(http.StatusOK) |
|
|
|
writer.WriteHeader(http.StatusOK) |
|
|
|
// in earlier versions, this initial body data was used to immediately
|
|
|
|
if _, ok := request.URL.Query()["x_padding"]; !ok { |
|
|
|
// start a 200 OK on all CDN. but xray client since 1.8.16 does not
|
|
|
|
// in earlier versions, this initial body data was used to immediately
|
|
|
|
// actually require an immediate 200 OK, but now requires these
|
|
|
|
// start a 200 OK on all CDN. but xray client since 1.8.16 does not
|
|
|
|
// additional bytes "ok". xray client 1.8.24+ doesn't require "ok"
|
|
|
|
// actually require an immediate 200 OK, but now requires these
|
|
|
|
// anymore, and so this line should be removed in later versions.
|
|
|
|
// additional bytes "ok". xray client 1.8.24+ doesn't require "ok"
|
|
|
|
writer.Write([]byte("ok")) |
|
|
|
// anymore, and so this line should be removed in later versions.
|
|
|
|
|
|
|
|
writer.Write([]byte("ok")) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
responseFlusher.Flush() |
|
|
|
responseFlusher.Flush() |
|
|
|
|
|
|
|
|
|
|
|
downloadDone := done.New() |
|
|
|
downloadDone := done.New() |
|
|
|