lanrat / czds

simple golang API and tools to interact with czds.icann.org
https://pkg.go.dev/github.com/lanrat/czds
GNU General Public License v3.0
72 stars 14 forks source link

fix: check conent-length after zone download #13

Closed Khalid-Nowaf closed 2 years ago

Khalid-Nowaf commented 2 years ago

This PR fixes the data integrity issue #12 that I face from time to time, where the downloaded data is partially downloaded.

I have tried to check the download bytes against the request content-length to make sure the data is downloaded fully and remove the corrupted file.

lanrat commented 2 years ago

Thanks for submitting this PR. Looks good to me!