Skip to content

0.0.17-alpha: Refactor: Use `header` instead of `addHeader` for custom headers

Choose a tag to compare

@kmpbits kmpbits released this 30 Oct 11:59
· 148 commits to main since this release

Use header instead of addHeader for custom headers

Using header ensures that if a header with the same name already exists, it is replaced with the new value. In contrast, addHeader would append another header with the same name, which could lead to unexpected behavior. This change makes the header injection more robust and predictable.