Added support for passing through Accept header.