use map of canonicalised headers in favour of looping function