Skip to content

Commit 85b693c

Browse files
author
manute
committed
chore(gateway): fix debug redirect
1 parent d21ec92 commit 85b693c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/corehttp/gateway_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ func (sw *statusResponseWriter) WriteHeader(code int) {
8282
redirect := sw.ResponseWriter.Header().Get("Location")
8383
if redirect != "" && code == http.StatusOK {
8484
code = http.StatusMovedPermanently
85+
log.Debugw("subdomain redirect", "location", redirect, "status", code)
8586
}
86-
log.Debugw("subdomain redirect", "location", redirect, "status", code)
8787
sw.ResponseWriter.WriteHeader(code)
8888
}
8989

0 commit comments

Comments
 (0)