Skip to content

Added X-Amz-Date creation

Latest
Compare
Choose a tag to compare
@tivac tivac released this 15 Jun 08:01

Added a new export, headerXAmzDate which takes a JS Date object (or uses Date.now() by default) and converts it into the X-Amz-Date header format.

Mostly useful for signing requests using fetch() since you can't specify a Date header in that case due to it being a Forbidden Header Name.