allow thrift clients to pass in heading information.