* Callbacks have different signature for GET and HEAD * The website function uses GET callback signature * This encapsulate HEAD callback to match GET signature * @param {function} callback - HEAD callback * @returns {function} HEAD callback with GET signature
(callback)
| 120 | * @returns {function} HEAD callback with GET signature |
| 121 | */ |
| 122 | function callbackGetToHead(callback) { |
| 123 | return (err, userErrorPageFailure, dataGetInfo, |
| 124 | resMetaHeaders, redirectInfo, key) => |
| 125 | callback(err, resMetaHeaders, redirectInfo, key); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Website - Common website function for GET and HEAD |