Commit 1e94057c authored by Jeffrey Jagoda's avatar Jeffrey Jagoda Committed by Petka Antonov
Browse files

url: fix resolving from non-file to file URLs.

When resolving a reference URL with the 'file' scheme an no host
against a base URL without the 'file' scheme, the first path element
of the reference URL is used as the host for the target URL. This
results in an invalid target URL.

This change makes an exception for file URLs so that the host is not
mangled during URL resolution.

PR-URL: https://github.com/iojs/io.js/pull/1277


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
Reviewed-By: default avatarPetka Antonov <petka_antonov@hotmail.com>
parent 8c6c376a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment