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
Large size http request been cut off when through protocol registerHttpProtocol API #8302
Comments
Thanks for contributing! We are no longer releasing bug fixes for versions of Electron older than 1.5. We prefer to only keep issues that are on our immediate radar. If you are still having the same issue in an up-to-date version, feel free to reach out and we'll reopen. |
The same issue occurs with Electron v8.0.3 with the simple handler. 2mb gif file is always corrupted. It's reproduced on Linux and MacOS. Windows loads the page fine, but If "Fast 3G" emulation in DevTools is enabled, it has the same problem. const { app, BrowserWindow, protocol } = require('electron');
app.on('ready', () => {
protocol.registerHttpProtocol('https', (request, callback) => {
console.log(request);
callback(request);
});
const wnd = new BrowserWindow();
wnd.loadURL('https://l96.ru/share/electron/');
}); |
I'm having the same issue with a 5MB PNG image file, which gets truncated when passing through |
I fixed this by using |
Follow-up in this open issue: |
PS: note that registerStreamProtocol() has its own issues, notably when piping HTTP 206 response streams (partial byte range requests). See link in previous comment above for details. |
Expected behavior
When I Use registerHttpProtocol to watch http requests and let original request callback to the browser.Expected all request work find.
Expected like this :
Actual behavior
When request a large size file like huge non-compressed javascript(more than 40000 lines) it would be cut off through protocol registerHttpProtocol API and if use WebRequest API it would not be cut off.
Actual this :
The text was updated successfully, but these errors were encountered: