Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Resource#getSize: Retrieve Resource's size #256

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

tobiasso85
Copy link
Contributor

Stats.size was not set for a stream.
To ensure Resource's size can be retrieved for:

  • stream
  • string
  • buffer

async method is introduced which uses Resource#getBuffer to
ensure that size retrieval works for all content types.

followup of #253

Stats.size was not set for a stream.
To ensure Resource's size can be retrieved for:
* stream
* string
* buffer
async method is introduced which uses #getBuffer to
ensure that size retrieval works for all content types.

followup of #253
@tobiasso85 tobiasso85 requested review from RandomByte and matz3 July 6, 2020 08:32
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 86.817% when pulling 7ef4d4e on resource-getsize-function into d5a0333 on master.

@tobiasso85 tobiasso85 marked this pull request as ready for review July 9, 2020 07:02
@matz3
Copy link
Member

matz3 commented Jul 9, 2020

Should we document that resource.getStatInfo().size may be incorrect / outdated in some cases?

@RandomByte
Copy link
Member

Should we document that resource.getStatInfo().size may be incorrect / outdated in some cases?

I created #257 to address this

@tobiasso85 tobiasso85 merged commit 9d2cc6c into master Jul 13, 2020
@tobiasso85 tobiasso85 deleted the resource-getsize-function branch July 13, 2020 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants