commit | bc7ce893c36595e095de550a211feb5993e6ef92 | [log] [tgz] |
---|---|---|
author | Chan Kang <ChannyClaus@users.noreply.github.com> | Tue Jun 21 17:54:14 2022 |
committer | GitHub <noreply@github.com> | Tue Jun 21 17:54:14 2022 |
tree | bd35e8dacd726a8df5133442d0bd3997d20c49da | |
parent | 27d91a9be56520b2ebae7ea508b8afdf1d191f41 [diff] |
Check for and report bad protocol in TLSClientConfig.NextProtos (#788) * return an error when Dialer.TLSClientConfig.NextProtos contains a protocol that is not http/1.1 * include the likely cause of the error in the error message * check for nil-ness of Dialer.TLSClientConfig before attempting to run the check * addressing the review * move the NextProtos test into a separate file so that it can be run conditionally on go versions >= 1.14 * moving the new error check into existing http response error block to reduce the possibility of false positives * wrapping the error in %w * using %v instead of %w for compatibility with older versions of go * Revert "using %v instead of %w for compatibility with older versions of go" This reverts commit d34dd940eeb29b6f4d21d3ab9148893b4019afd1. * move the unit test back into the existing test code since golang build constraint is no longer necessary Co-authored-by: Chan Kang <chankang@chankang17@gmail.com>
Gorilla WebSocket is a Go implementation of the WebSocket protocol.
⚠️ The Gorilla WebSocket Package is looking for a new maintainer
The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.
go get github.com/gorilla/websocket
The Gorilla WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.