google / google/sync_http.dart

Truncated body in get request

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
18
Forks
16
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.