title: Content-Type tag incorrect when uploading file to s3 using the AWS c++ interface
body: <p>I'm trying to upload a file to S3 using the AWS C++ SDK. The file transfers just fine but the content type is "binary/octet-stream" instead of "text/html". When I look at the file in the S3 console. There is a "x-amz-meta-content-type" metadata record of type "text/html". How can I set the actual content type of the file I want to upload?</p>
  
  <pre><code>int main (int, char**)
  {
     Aws::SDKOptions options;
     Aws::InitAPI (options);
     client = new Aws::S3::S3Client;
  
     Aws::S3::Model::PutObjectRequest request;
     request.SetBucket ("mywebsite.notreal.net");
     request.SetKey ("index.html");
     request.SetACL (Aws::S3::Model::ObjectCannedACL::public_read);
     request.SetContentEncoding ("UTF-8");
     request.AddMetadata ("Content-Type", "text/html");
  
     auto inputData = Aws::MakeShared&lt;Aws::FStream&gt; ("PutObjectInputStream", "index.html", std::ios_base::in | std::ios_base::ate);
     request.SetContentLength (inputData-&gt; tellg ());
     request.SetBody (inputData);
  
     auto result = client-&gt; PutObject (request);
     return result.IsSuccess () ? 0 : 1;
  }
  </code></pre>
  
  <p>v</p>