http library bug fix