set-cookie parser rewrite