TritonDataCenter / node-http-signature

Reference implementation of Joyent's HTTP Signature Scheme
https://tritondatacenter.com
MIT License
405 stars 118 forks source link

Removing dependence need to jsprim #60

Closed BenjaminVadant closed 7 years ago

BenjaminVadant commented 8 years ago

jsprim was only used for one call of a function now broadly supported https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/toUTCString

arekinath commented 7 years ago

Unfortunately, as the MDN documentation specifically notes, "The format of the return value may vary according to the platform. The most common return value is a RFC-1123...". The ECMAscript spec does not require implementations to make this method return the RFC1123 format, and quite a few do not. As a result I really would rather not have us rely on it (since it can also be changed by e.g. V8 at any time)