We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf967f commit 4b85728Copy full SHA for 4b85728
pkg/http/http.go
@@ -105,6 +105,11 @@ func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
105
p.logger.Error("Failed to authorize connect", slog.Any("error", err))
106
return
107
}
108
+ if err := p.session.AuthPublish(ctx, &r.RequestURI, &payload); err != nil {
109
+ encodeError(w, http.StatusForbidden, err)
110
+ p.logger.Error("Failed to authorize publish", slog.Any("error", err))
111
+ return
112
+ }
113
if err := p.session.Publish(ctx, &r.RequestURI, &payload); err != nil {
114
encodeError(w, http.StatusBadRequest, err)
115
p.logger.Error("Failed to publish", slog.Any("error", err))
0 commit comments