majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.02k stars 420 forks source link

API: add content-length header #47

Closed DanielRuf closed 3 years ago

DanielRuf commented 6 years ago

The content-length header would ease the calculation of the progress of the download.

So far it seems to be not so easy / not possible without doing a bigger refactor and using a Promise-based approach for some internal methods. And with the current NodeJS versin we can not yet use the native Promise implementation.

https://node.green/#ES2015-built-ins-Promise