gaul / s3proxy

Access other storage backends via the S3 API
Apache License 2.0
1.75k stars 228 forks source link

objects should return binary/octet-stream when no content type is specified during put #179

Open kahing opened 7 years ago

kahing commented 7 years ago

currently s3proxy returns application/unknown vs aws s3 returns binary/octet-stream

gaul commented 7 years ago

@kahing The various Java SDKs and HTTP clients interfere with me testing this. Can you change S3ProxyHandler.addContentMetdataFromHttpRequest to add the default Content-Type and test your change locally?

gaul commented 6 years ago

I suspect that jclouds sets application/unknown as JCLOUDS-595 suggests. S3Proxy could just provide its own default Content-Type.