Skip to content

Commit

Permalink
fix typo (#87)
Browse files Browse the repository at this point in the history
s/endpoing/endpoint
  • Loading branch information
desimone authored and rs committed Dec 12, 2019
1 parent 927da63 commit fdcf4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cors.go
Expand Up @@ -384,7 +384,7 @@ func (c *Cors) isOriginAllowed(r *http.Request, origin string) bool {
}

// isMethodAllowed checks if a given method can be used as part of a cross-domain request
// on the endpoing
// on the endpoint
func (c *Cors) isMethodAllowed(method string) bool {
if len(c.allowedMethods) == 0 {
// If no method allowed, always return false, even for preflight request
Expand Down

0 comments on commit fdcf4f9

Please sign in to comment.