fixing error detection for strtod in http gzipping