specmatic icon indicating copy to clipboard operation
specmatic copied to clipboard

Headers and queries with multiple/null values are not fully supported

Open daviddenton opened this issue 2 years ago • 2 comments

HTTP allows multiple headers/queries with the same name to be sent, as well as for there to be null values - eg. /path?query=1&query&query=3

This is problematic if we are capturing things like Cookie headers which are often sent in multiple entities.

The types inside the Specmatic codebase only support Map<String, String> instead of Map<String, List<String?>.

daviddenton avatar Jul 10 '23 21:07 daviddenton

Thanks for reporting this @daviddenton. We'll have a look at this and get back to you.

jaydeepk avatar Jul 11 '23 04:07 jaydeepk

bump

harikrishnan83 avatar Oct 03 '23 12:10 harikrishnan83