Skip to content

Apple Safari 18 - Error: „cannot parse response“ (NSURLErrorDomain:-1.017) #42

Open
@andi07x

Description

@andi07x

Hi there,

since Safari 18 all responses with Transfer-Encoding: chunked throw the error: „cannot parse response“ (NSURLErrorDomain:-1.017).
To fix this you need to change line 320 of WebResponses.cpp to:
outLen = sprintf((char*)buf+headLen, "%04x", readLen) + headLen;
and delete line 321.
Even though the comment above says that spaces are allowed, I couldn't find that in the RFC. With the leading 0 it works with Safari 18 and Firefox, Curl and Chrome.
Hope this helps and would be happy if this gets into the code.

Best regards
Andreas

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