TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.75k stars 1.09k forks source link

[TT-13257] Fix websocket upgrade with multiple values in Connection header #6619

Open Darkness4 opened 1 month ago

Darkness4 commented 1 month ago

Description

To check for Websocket connection upgrade, replaces the "!=" check with the "not contains" check.

Related Issue

Closes #6449.

How This Has Been Tested

A test case has been added.

Types of changes

Checklist

titpetric commented 1 month ago

Hi,

thank you for the contribution. The approach looks good for the most part, two requests raised from review:

Thank you :)

Darkness4 commented 1 month ago

@titpetric You can re-review. :slightly_smiling_face: