Closed teawithfruit closed 7 months ago
@teawithfruit, thanks for the contribution. I took the liberty to do some fixups in the tests, plus I noticed that Record<string, number | string | string[]>
was a bit too permissive (fetch
API is a bit more strict on that), so I reduced it to Record<string, string>
as it matches both APIs.
Released as 0.2.9.
Thanks for reacting such fast. 🙂
Summary
This PR enables clickhouse-js to use additional headers in http(s) requests. On my side it was necessary to be able to use a reverse proxy with basic auth in front. For example, something like this is possible from now on.
Checklist
Delete items not relevant to your PR: