updated xhr patch to lowercase all headers