Skip to content

Commit 0f9969c

Browse files
committed
make hotfix instead
1 parent 5c25409 commit 0f9969c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/api/handlers/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ func HandleUpdateApply(updater *update.Manager) http.HandlerFunc {
127127

128128
func HandleUpdateEvents(updater *update.Manager) http.HandlerFunc {
129129
return func(w http.ResponseWriter, r *http.Request) {
130-
// Handle HEAD requests with early return
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
131132
if r.Method == http.MethodHead {
132133
render.EncodeResponse(w, http.StatusOK, nil)
133134
return

0 commit comments

Comments
 (0)