Browse Source

add support for header based early data on server side

Shelikhoo 4 years ago
parent
commit
d378b8c42e
1 changed files with 1 additions and 1 deletions
  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