Skip to content

Commit a6e58c0

Browse files
JManchSean-Der
authored andcommitted
Fix DISABLE_STATUS
1 parent de7e6cc commit a6e58c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func whepLayerHandler(res http.ResponseWriter, req *http.Request) {
162162
func statusHandler(res http.ResponseWriter, req *http.Request) {
163163
if os.Getenv("DISABLE_STATUS") != "" {
164164
logHTTPError(res, "Status Service Unavailable", http.StatusServiceUnavailable)
165+
return
165166
}
166167

167168
res.Header().Add("Content-Type", "application/json")

0 commit comments

Comments
 (0)