flagd/core
Zhiwei Liang 5ff38b43b6
test: add `buildHeaders` function for http sync tests (#1804)
## This PR

The previous way of building HTTP headers with raw map is not reliable
in some edge cases.

An example is case-sensitive issue for `ETag` header which requires
`Etag` (lower case `t`) to be the map key when building the response
with a raw map, in order to receive it via `resp.Header.Get("ETag")` on
the other end.

Having a `buildHeaders` function to utilize `Set` built-in function of
`http.Header` would solve this concern.

### How to test
```bash
go test ./core/pkg/sync/http/...
```

---------

Signed-off-by: Zhiwei Liang <zhiwei.liang27@pm.me>
2025-09-24 15:05:08 +02:00
..
pkg test: add `buildHeaders` function for http sync tests (#1804) 2025-09-24 15:05:08 +02:00
CHANGELOG.md chore: release main (#1696) 2025-07-28 16:00:14 -04:00
go.mod feat: change jsonschema parser (#1794) 2025-09-08 09:22:48 -04:00
go.sum feat: change jsonschema parser (#1794) 2025-09-08 09:22:48 -04:00