TritonDataCenter / node-http-signature

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

Different definition for request-line and (request-target) in signRequest and parseRequest which cause verify failure #135

Open trend-hailie-chou opened 2 months ago

trend-hailie-chou commented 2 months ago

The definition in signer.signRequest function is:
image
The definition in parser.parseRequest is:
image

for reference:
https://expressjs.com/en/api.html#req.path
Contains the path part of the request URL. https://expressjs.com/en/5x/api.html#req.originalUrl
https://nodejs.org/api/http.html#http_message_url