Closed icaraps closed 2 years ago
https://www.npmjs.com/package/serverless-http used by expressify only supports AWS provider and therefore handles multivalue parameters with multiValueHeaders
see https://aws.amazon.com/fr/blogs/compute/support-for-multi-value-parameters-in-amazon-api-gateway/ for details.
A simple Wworkaround is to verify if the property is set and adapt the response eg
const res = await expressify(app)(params);
if (res.multiValueHeaders) {
res.headers = {
...res.headers,
...res.multiValueHeaders
};
delete res.multiValueHeaders;
}
return res;
I imagine another solution would be to add new provider openwhisk to http-serverless to handle it.
@icaraps as we don't use cookies in Helix, this will probably not get a lot of attention from us, but we'd review a PR, should it come to that.
we don't use cookies in Helix
yes, we do, in helix-admin where we set the auth cookie. and it is actually a problem with helix-fetch (any maybe helix-universal) that multiheaders can't be used. so we have to encode multiple cookie values into 1 cookie
:tada: This issue has been resolved in version 4.4.8 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Setting multiple cookies works fine without expressify ✅ Setting a single cookie works fine with expressify ✅ Setting multiple cookies doesn't work with expressify ❌
Please have a look at the following code for an action.