Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Handle non-fully qualified ajax calls #31

Merged
merged 2 commits into from
Mar 17, 2014
Merged

Handle non-fully qualified ajax calls #31

merged 2 commits into from
Mar 17, 2014

Conversation

kpdecker
Copy link
Contributor

Resolve per url.relative rules

Resolve per url.relative rules
@@ -59,6 +60,11 @@ module.exports = exports = function($, exec, ajaxCache) {
jsonp = true;
}

// Relative URL, handle as appropriate

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this work correctly if it is a protocol relative url? http://tools.ietf.org/html/rfc3986#section-4.2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did not. Added a test and made the code more generic to handle this case. Good catch.

@jhudson8
Copy link

+1

@candid82
Copy link
Contributor

lgtm

kpdecker added a commit that referenced this pull request Mar 17, 2014
Handle non-fully qualified ajax calls
@kpdecker kpdecker merged commit b42e374 into master Mar 17, 2014
@kpdecker kpdecker deleted the relative-ajax branch March 17, 2014 19:59
@kpdecker
Copy link
Contributor Author

Released in 0.3.0

@kpdecker kpdecker modified the milestone: 1.0.0 Feb 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants