as investigated in ##66 the Content-Type header changed from application/x-gzip to application/x-gzip for the provided models, such as https://nlp.h-its.org/bpemb/en/en.wiki.bpe.vs10000.d100.w2v.bin.tar.gz.
This MR robustify the download logic a bit and generally checks for gzip strin in the Content-Type header .
Hi,
as investigated in ##66 the
Content-Type
header changed fromapplication/x-gzip
toapplication/x-gzip
for the provided models, such ashttps://nlp.h-its.org/bpemb/en/en.wiki.bpe.vs10000.d100.w2v.bin.tar.gz
.This MR robustify the download logic a bit and generally checks for
gzip
strin in theContent-Type
header .