-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
I do get the following error message when trying to update my electron application:
Cannot download differentially, fallback to full download: Error: Content-Type "multipart/byteranges" is expected, but got "application/octet-stream"
After some investigation I found out that Apache HTTPD was the cause and for some reason it doesn't like the way the Range header is created in the multipleRangeDownloader.js. So the Range Header looks like this:
Range: bytes=1-2, 3-4
and Apache HTTPD doesn't like the whitespace after the comma for some reason, so for compatibility reason we should remove the whitespace after the comma, so it looks like this:
Range: bytes=1-2,3-4
Nginx doesn't care about whitespace, it works in both cases.
I couldn't find anything specific to whitespace in the RFC, but examples didn't have whitespace for multiple ranges as well: https://datatracker.ietf.org/doc/html/rfc7233.
beyondkmp
Metadata
Metadata
Assignees
Labels
No labels