Skip to content

Missing response body on Linux using -d:danger --passC:-flto #112

@tdely

Description

@tdely

On Linux when compiled with -d:danger --passC:-flto running the following example code will crash with Error uncompressing response [PuppyError]:

import puppy

for i in 1..1:
  let resp = fetch("http://neverssl.com")

Removing the for loop avoids the issue, as does not using either -d:danger or --passC:-flto.
For some reason bodyWrap does not get set properly at line 76 in src/puppy/platforms/linux/platform.nim resulting in an empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions