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
The CompareHeaders function currently fails to properly handle and display differences when expected headers are missing from the actual headers map.
Current Behavior
When an expected header is missing from the actual headers:
The test fails with error: "CompareHeaders() didn't properly show missing Authorization header"
The diff output doesn't properly highlight or indicate the missing header
The function may panic or produce incorrect output when trying to process missing values
Expected Behavior
When comparing headers and encountering missing values, the function should:
Clearly indicate which headers are missing in the actual headers
Mark missing headers appropriately in the diff visualization
The fails for
expected := map[string]string{
"Authorization": "Bearer token123",
"User-Agent": "test-client",
}
actual := map[string]string{
"User-Agent": "test-client",
}
The text was updated successfully, but these errors were encountered:
The CompareHeaders function currently fails to properly handle and display differences when expected headers are missing from the actual headers map.
Current Behavior
When an expected header is missing from the actual headers:
The test fails with error: "CompareHeaders() didn't properly show missing Authorization header"
The diff output doesn't properly highlight or indicate the missing header
The function may panic or produce incorrect output when trying to process missing values
Expected Behavior
When comparing headers and encountering missing values, the function should:
Clearly indicate which headers are missing in the actual headers
Mark missing headers appropriately in the diff visualization
The fails for
expected := map[string]string{
"Authorization": "Bearer token123",
"User-Agent": "test-client",
}
actual := map[string]string{
"User-Agent": "test-client",
}
The text was updated successfully, but these errors were encountered: