refine send_header