Skip to content

Commit

Permalink
Fixed setting Mattermost-Plugin-ID header (#155)
Browse files Browse the repository at this point in the history
@iomodo please cut a release
  • Loading branch information
levb authored Apr 15, 2021
1 parent 6b9bddd commit 83bd89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/autolinkplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (p *Plugin) ProcessPost(c *plugin.Context, post *model.Post) (*model.Post,
}

func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
r.Header.Add("Mattermost-Plugin-ID", c.SourcePluginId)
r.Header.Set("Mattermost-Plugin-ID", c.SourcePluginId)
p.handler.ServeHTTP(w, r)
}

Expand Down

0 comments on commit 83bd89e

Please sign in to comment.