fix bugs regarding the header

- if i write my header in lowercase, and the function is not
  different in lowercase, do not delete the it

- fix checkHeaders: if there is no header in the current request,
  but was defined before, i want to return false.