fixed httpheader generation