change return value []Header to []map[string]string
implement test