* validateWebsiteHeader description] * @param {string} header - value of * x-amz-website-redirect-location header on a put * object (or similar request -- initiate mpu, object copy) * @return {boolean} true if valid, false if not
(header)
| 97 | * @return {boolean} true if valid, false if not |
| 98 | */ |
| 99 | function validateWebsiteHeader(header) { |
| 100 | return (!header || header.startsWith('/') || |
| 101 | header.startsWith('http://') || header.startsWith('https://')); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * appendWebsiteIndexDocument - append index to objectKey if necessary |
no outgoing calls
no test coverage detected