File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed 
packages/middleware-content-length/src Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
1111}  from  "@aws-sdk/types" ; 
1212
1313const  CONTENT_LENGTH_HEADER  =  "content-length" ; 
14- const  TRANSFER_ENCODING_HEADER  =  "transfer-encoding" ; 
1514
1615export  function  contentLengthMiddleware ( bodyLengthChecker : BodyLengthCalculator ) : BuildMiddleware < any ,  any >  { 
1716  return  < Output  extends  MetadataBearer > ( next : BuildHandler < any ,  Output > ) : BuildHandler < any ,  Output >  => 
@@ -32,10 +31,8 @@ export function contentLengthMiddleware(bodyLengthChecker: BodyLengthCalculator)
3231              [ CONTENT_LENGTH_HEADER ] : String ( length ) , 
3332            } ; 
3433          }  catch  ( error )  { 
35-             request . headers  =  { 
36-               ...request . headers , 
37-               [ TRANSFER_ENCODING_HEADER ] : "chunked" , 
38-             } ; 
34+             // ToDo: Add 'transfer-encoding' as chunked only for HTTP/1.1 request 
35+             // Refs: https://github.com/aws/aws-sdk-js-v3/pull/3403 
3936          } 
4037        } 
4138      } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments