Skip to content

Cannot download differentially #9270

@cubimon

Description

@cubimon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions