http_ng/headers: replace gsub calls
http_ng/headers: replace gsub calls

gsub is not implemented in the luajit compiler. Replacing gsub with code
that can be compiled instead of interpreted will increase performance.

3scale/apicast,3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/docker-gateway