In Reverse Proxy functionality, The HeaderValues aren't parsed correctly. The size is bigger than the list of items in my case.
The original request contains 15 Set-Cookie headers, 5 of which are duplicate headers.
The HeaderValues contains size: 15, but the values are a list of 10 Strings.
When the HttpResponseConduit copies the headers to the output, the HttpResponseConduit.processWrite method gives a NullPointerException on line 190.
Since duplicate headers aren't used, the removal of these headers is probably not a bad idea. But since the HTTP protocol supports these headers, the Reverse Proxy should also be capable of handling them correctly.