fixed bug:get header info when header is null.