You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance convertHeaders function and add comprehensive unit tests
- Improve `convertHeaders` function documentation for clarity
- Modify `convertHeaders` function to handle edge cases with empty keys or values
- Replace `strings.Split` with `strings.SplitN` to limit splits to 2 parts in `convertHeaders`
- Add trimming of whitespace for keys and values in `convertHeaders`
- Add new test file `proxy_test.go` with unit tests for `convertHeaders` function
Signed-off-by: appleboy <[email protected]>
0 commit comments