get content-type even if can't get other headers. fixes #181