Fix httpProxy and delete extra '?' to the redirected url if no additional parameters