fixed http source problem on ruby 1.8