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 cd29de0 commit 899f8e9Copy full SHA for 899f8e9
internal/api/handlers/update.go
@@ -127,6 +127,13 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
127
128
func HandleUpdateEvents(updater *update.Manager) http.HandlerFunc {
129
return func(w http.ResponseWriter, r *http.Request) {
130
+ // HOTFIX: app-lab use HEAD requests to check endpoint availability
131
+ // so we need to handle them here by early return without opening SSE stream
132
+ if r.Method == http.MethodHead {
133
+ render.EncodeResponse(w, http.StatusOK, nil)
134
+ return
135
+ }
136
+
137
sseStream, err := render.NewSSEStream(r.Context(), w)
138
if err != nil {
139
slog.Error("Unable to create SSE stream", slog.String("error", err.Error()))
0 commit comments