Skip to content

Truncated body in get request #11

Open
@epastorl

Description

@epastorl

When performing a get request:
SyncHttpClientRequest getRequest = SyncHttpClient.getUrl(uri);
getRequest.headers.add('cookie', _cookie);
SyncHttpClientResponse getResponse = getRequest.close();

The contents of the returned body gets truncated to around 700 characters.

After checking that the actual amount of returned characters is correct, I modified the socket.readSync(1024); sentence to increase the number of bytes being read.... witch sorted out the problem.

I can provide more details on request.

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