Closed cawerkenthin closed 7 years ago
The special case of "" for the matchHash should not include quotes. For example: If-None-Match: is correct, but If-None-Match: "*" is not correct. See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26
This can be fixed by using the following function: function formatHash(hash) { if (hash === "*") { return hash; } return '"' + hash + '"'; }
Usage example: headers = { "If-Match": formatHash(matchHash) };
Thank you for the info. The fix is merged and should take care of this problem. Thanks!
The special case of "" for the matchHash should not include quotes. For example: If-None-Match:
is correct, but If-None-Match: "*" is not correct. See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26
This can be fixed by using the following function: function formatHash(hash) { if (hash === "*") { return hash; } return '"' + hash + '"'; }
Usage example: headers = { "If-Match": formatHash(matchHash) };