scireum / s3ninja

S3 ninja emulates the Amazon S3 API for developement and test purposes
MIT License
494 stars 91 forks source link

Content-Length is empty on HEAD #209

Closed gerhardj-b closed 1 year ago

gerhardj-b commented 2 years ago

This is not according to the S3 API as well as HTTP standards.

My client relies on the content length returned by the HEAD request. Is it therefore possible to change this, so that the content-length is also sent on such requests?

jakobvogel commented 1 year ago

Many thanks for reporting this @gerhardj-b ☺️ … Can you please be more precise? Which operations exactly expect the content-length and we fail to provide it?

jakobvogel commented 1 year ago

I have found one such condition on PUTing an object. Do you refer to this?