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
I have test classes generated by TCase, which utilize the default response validator class. In these classes, two assertions responseValidator.assertBodyValid(...) and responseValidator.assertHeadersValid(...) are added. The assertHeaderValid method uses a private method to construct the Map from the response object, where it encounters issues handling duplicate keys.
Thanks for reporting this problem. The HTTP specification states that multiple header lines with the same field name MUST be equivalent to a single header line with a comma-separated list of values. For example:
Therefore, I propose changing responseHeaders to return a Map that maps "Vary" to "Origin, Access-Control-Request-Method, Access-Control-Request-Headers". Agreed?
Correction: I propose changing responseHeaders to return a Map that maps "Vary" to "Origin,Access-Control-Request-Method,Access-Control-Request-Headers". In other words, separating multiple header values with a single comma -- no extra whitespace.
I have test classes generated by TCase, which utilize the default response validator class. In these classes, two assertions responseValidator.assertBodyValid(...) and responseValidator.assertHeadersValid(...) are added. The assertHeaderValid method uses a private method to construct the Map from the response object, where it encounters issues handling duplicate keys.
Please find the sample response header
The text was updated successfully, but these errors were encountered: