COUCHDB-1156 - Send Accept header to avoid HTML response. Hand crafted backport of 1126411 from 1.1.x where rnewson doesn't mention the revision from trunk.