Closed bamthomas closed 1 year ago
Thanks for the detailed report! Looks like SvelteKit changed the types of the request
object. I'm working on a fix in https://github.com/quirrel-dev/quirrel/pull/1131, will ping here when it's released.
@all-contributors please add @bamthomas for bug
@Skn0tt
I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.
I've put up a pull request to add @bamthomas! :tada:
Shipped in https://github.com/quirrel-dev/quirrel/releases/tag/v1.13.3, please let me know if that works for you.
Thank you very much for the fix and the add.
I'm going to test it soon, I will update this comment.
Bug Report
Current Behavior When using quirrel with sveltekit in production we have the error
Signature is missing
when quirrel calls the app.The code :
Is getting
undefined
in thesignature
variable.It seems that headers object is a Map and I'm not sure we can read the header with
headers["x-quirrel-signature"]
:Expected behavior/code
The header is correctly read.
Environment
ghcr‧io/quirrel-dev/quirrel:sha-fbfa761
Possible Solution
I'm not sure how to fix this (that's the reason I didn't make a PR) because :
is working but maybe it won't work for other environments.
maybe :
What do you think ? As a workaround I'm doing a sed in the file while building my app.