fix reg ex and warning http head