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
1 changed files with 1 additions and 1 deletions

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