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

Normalize relative path for document-root on Windows #124

Merged
merged 1 commit into from
Jun 18, 2014

Conversation

mrfabbri
Copy link
Contributor

Calling resolve() doesn't fully normalize relative path on Windows (in Node v0.11.x, see nodejs/node-v0.x-archive#7031 ), i.e. doesn't lowercase drive letter, while normalize() does, which causes paths resulting from calling normalize() and join() (depending on normalize()) to differ and to break comparisons.

Fixes #42.

- Calling resolve() doesn't fully normalize relative path on Windows (in Node v0.11.x, see
  nodejs/node-v0.x-archive#7031 ), i.e. doesn't lowercase drive letter, while normalize() does, which causes
  paths resulting from calling normalize() and join() (depending on normalize()) to differ and to
  break comparisons.

Fixes cloudhead#42.
phstc added a commit that referenced this pull request Jun 18, 2014
Normalize relative path for document-root on Windows
@phstc phstc merged commit beb25d3 into cloudhead:master Jun 18, 2014
@phstc
Copy link
Collaborator

phstc commented Jun 18, 2014

Thanks added to master! 😄

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.

node-static win32 forbiden
2 participants