Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: relative urls not matching XHR_CACHE #166

Merged
merged 1 commit into from
Apr 14, 2018

Conversation

cleong-tc
Copy link
Contributor

@Qirui_Sun found that relative-urls (i.e. done-ssr proxy-request) were not matching requests in XHR_CACHE because requests in XHR_CACHE have absolute-urls.

the fix is to check if url is a relative-url (i.e. url starts with a slash) then strip everything before pathname in request.url.

@matthewp matthewp merged commit cfa1b31 into canjs:master Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants