Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if req.Method == "OPTIONS" {
- // Handle OPTIONS requests
- if r.HandleOPTIONS {
- if allow := r.allowed(path, req.Method); len(allow) > 0 {
- w.Header().Set("Allow", allow)
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement