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(core): Set url on the fetch Response object #44

Merged
merged 2 commits into from
Jun 27, 2018

Conversation

offirgolan
Copy link
Collaborator

Resolved #43.

@offirgolan offirgolan changed the title fix(core): Set url on the fetch response object fix(core): Set url on the fetch Response object Jun 26, 2018
@offirgolan offirgolan requested a review from jasonmit June 26, 2018 16:45
defineProperty(fetchResponse, 'url', {
/*
Since `url` can be a relative url and Response always has an absolute
one, use URL to stitch together the origin if necessary.
Copy link
Contributor

Choose a reason for hiding this comment

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

Unsure what stitch together the origin means

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh my bad, I meant that it attaches the host name to a relative url. I'll update the comment.

@offirgolan offirgolan merged commit f5980cf into master Jun 27, 2018
@offirgolan offirgolan deleted the fetch-response-url branch June 27, 2018 02:36
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.

2 participants