Our object storage set Content-Type: application/octet-stream to images which leads browsers to download them. We need to let browsers preview them. So we use nginx like this:
It will remove Content-Type: application/octet-stream header. But how could we set the default content type such as image/png or image/jpg to the response?
Thank you for answering the question. I’ll take the map way as the solution. But I suggest that it should be an obvious way to re-apply the default behavior. And thanks again for the great software.