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

doen't use path.join for urls #21

Merged
merged 1 commit into from
Dec 8, 2015

Conversation

flecno
Copy link
Contributor

@flecno flecno commented Oct 25, 2015

The path module is for filesystem path. It is plaform agnostic and will add backslashs on windows. That is not the expected behavior.

I can not test it on windows, because I doen't have windows. And I'm not sure if the changed path in the index-nodetest.js is ok. Are leading Slashs OK for S3?

@achambers
Copy link
Member

@flecno Thanks for this. What is the reason for the change to the test file? That gzipped assets property should be an array of file names. Not file paths. So the leading slash doesn't really make sense.

@flecno
Copy link
Contributor Author

flecno commented Oct 25, 2015

Year. It's unsatisfying. I will look into this tomorrow. It seems there is a empty string inside the list. Perhaps the test isn't exact enough or the join has to be more safe...

 * the path module is for filesystem path. It is plaform agnostic
   and will add backslashs on windows. That is not the expected
   behavior.
@flecno
Copy link
Contributor Author

flecno commented Oct 26, 2015

@achambers The path are only joined if the prefix is not empty now.

lukemelia added a commit that referenced this pull request Dec 8, 2015
don't use path.join for urls
@lukemelia lukemelia merged commit 40ebb5f into ember-cli-deploy:master Dec 8, 2015
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.

3 participants