Revert "Revert "workaround to make it work against Sync Gateway, not exactly ideal as discussed in https://github.com/dustin/go-couch/issues/1""

This reverts commit f73187079b6129132289ba78a5540cc7e68ab592.