title: My website hosted Amazon S3 downloads index.html though my content-type is type/html
body: <p>Similar Question: <a href="https://stackoverflow.com/questions/18296875/amazon-s3-downloads-index-html-instead-of-serving/55197550#55197550">Amazon S3 downloads index.html instead of serving</a></p>
  
  <p>I am trying to upload a directory to my S3, when I upload manually I can see as static web page. But when I upload using curl, the index.html is getting downloaded.</p>
  
  <p>When I curl my request <code>curl -I https://s3-eu-west-1.amazonaws.com/bucket_name/index.html</code>, I can see</p>
  
  <pre><code>HTTP/1.1 200 OK
  x-amz-id-2: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  x-amz-request-id: XXXXXXXXXXXXXXXX
  Date: Fri, 15 Mar 2019 21:03:50 GMT
  Last-Modified: Fri, 15 Mar 2019 20:53:05 GMT
  ETag: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  Accept-Ranges: bytes
  Content-Type: text/html
  Content-Length: 48210
  Server: AmazonS3
  </code></pre>
  
  <p>But still the index.html is downloading.</p>