google / google/sync_http.dart
Truncated body in get request
Open
- 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
Assessment
This issue has not been assessed yet.