useid / handlersjs

MIT License
3 stars 3 forks source link

fix: return correct vary header #218

Closed BelgianNoise closed 1 year ago

BelgianNoise commented 1 year ago

If in the HttpCorsRequestHandler credentials was set to true and a origin header was present in the request. The vary header set in its child handler would be overwritten.

This change will keep the previous value from the child handler and add origin to it if it was not present already.