Fix response header parsing