fixed incompability with chrome (upgrade algorithm validateRequest is acting strange)
fixed validateRequest algorithm (it overwrote the headers while converting to lower case)