Not sure, but do we need to test for the case where we get 

    X-Extra-Header: 1
    X-Extra-Header: 1

Instead of

     X-Extra-Header: 1, 1

here?