Fix a ECONNRESET error cause by https