fix insensitive comparison for custom headers overwrite