title: AWS s3 upload api call returning 411 status
body: <p>I have been trying to perform AWS s3 rest api call to upload document to s3 bucket. The document is in the form of a byte array.</p>
  
  <pre><code>PUT /Test.pdf HTTP/1.1
  Host: mybucket.s3.amazonaws.com
  Authorization: **********
  Content-Type: application/pdf
  Content-Length: 5039151
  x-amz-content-sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD
  x-amz-date: 20180301T055442Z
  </code></pre>
  
  <p>When we perform the api call, it gives the response status 411 i.e Length Required. We have already added the Content-Length header with the byte array length as value. But still the issue is repeating. Please help to resolve the issue.</p>