Explorar o código

add support for header based early data on server side

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
d378b8c42e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      transport/internet/websocket/hub.go

+ 1 - 1
transport/internet/websocket/hub.go

@@ -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