Permalink
Browse files

Merge pull request #467 from jergason/patch-1

Test against correctly upper-cased method names
  • Loading branch information...
2 parents 5457e38 + fe4d73c commit 9edfadb53207767363802b14338240ec0d354f8e @assaf committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zombie/xhr.coffee
@@ -69,7 +69,7 @@ class XMLHttpRequest
# Check supported HTTP method
method = method.toUpperCase()
- if /^(connect|trace|track)$/.test(method)
+ if /^(CONNECT|TRACE|TRACK)$/.test(method)
throw new HTML.DOMException(HTML.SECURITY_ERR, "Unsupported HTTP method")
unless /^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/.test(method)
throw new HTML.DOMException(HTML.SYNTAX_ERR, "Unsupported HTTP method")

0 comments on commit 9edfadb

Please sign in to comment.