1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

add support for header based early data on server side

This commit is contained in:
Shelikhoo 2021-05-01 01:32:35 +01:00
parent 75231604c7
commit d378b8c42e
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -41,7 +41,7 @@ var upgrader = &websocket.Upgrader{
func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
var earlyData io.Reader
if !h.earlyDataEnabled {
if !h.earlyDataEnabled { // nolint: gocritic
if request.URL.Path != h.path {
writer.WriteHeader(http.StatusNotFound)
return