Skip to content

Commit

Permalink
Clarify docs on Accept
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Jun 20, 2019
1 parent def4f37 commit 3149225
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accept.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func verifyClientRequest(w http.ResponseWriter, r *http.Request) error {
// Accept will reject the handshake if the Origin domain is not the same as the Host unless
// the InsecureSkipVerify option is set. In other words, by default it does not allow
// cross origin requests.
//
// If an error occurs, Accept will always write an appropriate response so you do not
// have to.
func Accept(w http.ResponseWriter, r *http.Request, opts AcceptOptions) (*Conn, error) {
c, err := accept(w, r, opts)
if err != nil {
Expand Down

0 comments on commit 3149225

Please sign in to comment.