Parse URLs without trailing slash correctly. #191

Open
wants to merge 1 commit into
from

Projects

None yet

3 participants

@johanneswuerbach

URLs like http://myurl.com?param=1 as origin weren't parsed properly.

@waltersaegir

I see this failing:
if (/^file/.test(url)) {
throw new Error("The file:// protocol is not supported");
This is at a time when url: "file:///C:/Program%20Files%20(x86)/Apache%20Group/Apache2/htdocs/crossdomConsumer.html

It occurs on the first test of the first sample code.

@oyvindkinsey
Owner

Don't use file://.
On Oct 7, 2012 11:44 PM, "Walter" notifications@github.com wrote:

I see this failing:
if (/^file/.test(url)) {
throw new Error("The file:// protocol is not supported");
This is at a time when url:
"file:///C:/Program%20Files%20(x86)/Apache%20Group/Apache2/htdocs/crossdomConsumer.html

It occurs on the first test of the first sample code.


Reply to this email directly or view it on GitHubhttps://github.com/oyvindkinsey/easyXDM/pull/191#issuecomment-9217519.

@waltersaegir

Good! I used http://localhost instead of doubleclicking on the html file and now I see no errors,
but I get no results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment