Resolve issue with unexpected Expect: in headers