* fixed error with adding request headers. setrequestheader appends instead of overwrites, so it must be only called once for each header.