[htparse] Added length checks for various header values

- In some cases, the string comparison functions were not being checked for
  proper length, which could result in reading into garbage data (not past the
  actual buffer end, just the potential of reading a few bytes of a previous loop.

  This should also boost performance a tiny bit as we make sure of things like
  "Connection" is actually 10 bytes before an attempt to do a compare.