Fixes wrong check for crossdomain request (added different port check) in beef.net.request JS.

git-svn-id: https://beef.googlecode.com/svn/trunk@946 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
antisnatchor
2011-05-02 09:52:24 +00:00
parent b03d6b52e7
commit b30967aafe

View File

@@ -133,7 +133,7 @@ beef.net = {
*/
request: function(scheme, method, domain, port, path, anchor, data, timeout, dataType, callback) {
//check if same domain or cross domain
cross_domain = (document.domain == domain) ? false : true;
cross_domain = !((document.domain == domain) && (document.location.port == port));
//build the url
var url = scheme+"://"+domain;