MCPcopy Index your code
hub / github.com/scality/cloudserver / removeAWSChunked

Function removeAWSChunked

lib/api/apiUtils/object/removeAWSChunked.js:8–13  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

6 * @return {string} new value w. 'aws-chunked'/'aws-chunked,' substring removed
7 */
8function removeAWSChunked(sourceHeader) {
9 if (sourceHeader === undefined) {
10 return undefined;
11 }
12 return sourceHeader.replace(/aws-chunked,?/, '');
13}
14
15module.exports = removeAWSChunked;

Callers 3

metadataStoreMPObjectFunction · 0.85
_prepMetadataFunction · 0.85
createAndStoreObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected