http: use calculated offsets than integer literals for HTTP header parsing #7032
I was reading some code in
Local tests on my machine (GNU/Linux x86_64 with gcc) before the change (at 1763ace):
And after the change (at 2f7b2aa):
I have got a quick look at those failed tests, which seemed unrelated to the changes here.
…rsing Assumed to be a minor coding style improvement with no behavior change. A modern compiler is expected to have the calculation optimized during compilation. It may be deemed okay even if that's not the case, since the added overhead is considered very low.