remove fixed http protocol in xhr