* Checks for V4 streaming value 'aws-chunked' and removes it if present in * Content-Encoding to be compatible with AWS behavior. See: * http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html * @param {string} sourceHeader - Content-Encoding header from request headers * @return {st
(sourceHeader)
| 6 | * @return {string} new value w. 'aws-chunked'/'aws-chunked,' substring removed |
| 7 | */ |
| 8 | function removeAWSChunked(sourceHeader) { |
| 9 | if (sourceHeader === undefined) { |
| 10 | return undefined; |
| 11 | } |
| 12 | return sourceHeader.replace(/aws-chunked,?/, ''); |
| 13 | } |
| 14 | |
| 15 | module.exports = removeAWSChunked; |
no outgoing calls
no test coverage detected