Merged copyHttpHeaders method into HTTPUtil