title: S3 Presigned URL Multiple Content Disposition Headers
body: <p>I have an S3 bucket having PDF files as objects and all of them are private. I create an S3 Presigned URL programmatically to get the object. It works fine. Now, I want it to be previewable as a PDF. Every object already has a <code>Content-Type</code> header set to <code>application/pdf</code>. Now, if I set the <code>response-content-disposition</code> header as a query parameter, it gets set but doesn't override the already existing <code>Content-disposition</code> header, instead, it creates a new one. If I set the <code>Content-Disposition</code> header in the metadata of the S3 object instead of adding it in the S3 Presigned URL as a query parameter, it still shows 2 headers. Is this some kind of bug on the AWS S3 side?</p>
  
  <p>Below is the screenshot of the Response Header for reference.  </p>
  
  <p><a href="https://i.stack.imgur.com/KQ2w6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KQ2w6.png" alt="Con"></a></p>
  
  <p>Any help will be much appreciated. Thanks.</p>