[M-36899] Remove deprecated SourcePluginId (#17884)

Этот коммит содержится в:
Ben Schumacher
2021-08-03 18:52:14 +02:00
коммит произвёл GitHub
родитель 2488b980e8
Коммит 758116f3e3
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@@ -69,9 +69,8 @@ func (a *App) ServeInterPluginRequest(w http.ResponseWriter, r *http.Request, so
}
context := &plugin.Context{
RequestId: model.NewId(),
UserAgent: r.UserAgent(),
SourcePluginId: sourcePluginId,
RequestId: model.NewId(),
UserAgent: r.UserAgent(),
}
r.Header.Set("Mattermost-Plugin-ID", sourcePluginId)

Просмотреть файл

@@ -12,5 +12,4 @@ type Context struct {
IpAddress string
AcceptLanguage string
UserAgent string
SourcePluginId string // Deprecated: Use the "Mattermost-Plugin-ID" HTTP header instead
}