We have a static HTML web site hosted in S3. The bucket has static website hosting enabled and index.html is set as a default document. We'd like use WinSCP to upload/synchronize the files to the bucket. When uploading file called index.html to S3 everything is fine until we try to reach the document via HTTP. When I enter the website address to my browser, the file is downloaded instead of displayed on the page. The reason is that when WinSCP uploads the file, it sets Content-Type metadata to the file, and in our case the 'default' value is binary/octet-stream while it should be text/html.
I'm not sure whether this is a bug or is this a feature which I have configured wrongly?