Skip to content
Browse files

fixed origin check

  • Loading branch information...
1 parent 34a8be1 commit 2ba823caa48aa97e9043ad834ac377fb4e83bbdc @swdyh swdyh committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/main.js
View
2 lib/main.js
@@ -243,7 +243,7 @@ function get(url, callback, opt) {
function isSameOrigin(url1, url2) {
var a = new url.URL(url1)
var b = new url.URL(url2)
- return (a.scheme && a.scheme && a.host == b.host &&
+ return (a.scheme == b.scheme && a.host == b.host &&
a.port == b.port)
}

0 comments on commit 2ba823c

Please sign in to comment.
Something went wrong with that request. Please try again.