Add support for remote documents with "Content-Type" header.