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

Missing 'Accept' header in 'RequestHttpJob' requests. #2345

Closed
yan-foto opened this issue Jul 26, 2015 · 0 comments
Closed

Missing 'Accept' header in 'RequestHttpJob' requests. #2345

yan-foto opened this issue Jul 26, 2015 · 0 comments

Comments

@yan-foto
Copy link

As I was trying to intercept all URLs with file scheme, so I can fetch some online instead of from the file system, I found out that the semantic for BrowserWindow.loadUrl('http://localhost:3000/something') is different from the following:

var protocol = require('protocol');
protocol.RequestHttpJob({
  url: 'http://localhost:3000/something'
});

the latter doesn't set the Accept header for HTTP requests.

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

No branches or pull requests

2 participants