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

Get file size #124

Open
maddyblue opened this issue Sep 21, 2017 · 0 comments
Open

Get file size #124

maddyblue opened this issue Sep 21, 2017 · 0 comments

Comments

@maddyblue
Copy link

I've been attempting to fetch the file size (without downloading the contents) of an object using this package, but I don't think it's possible. I've been examining the headers returned by GetReader. They do contain a Content-Length header, but it is 0. newGetter uses the http response ContentLength field, which apparently is set correctly, but for some reason the http header is not also set. Are you aware of another way to get the file size? Or is it possible to expose an API that does it, or manually set the Content-Length header?

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

No branches or pull requests

1 participant