Skip to content

Commit 16834cc

Browse files
committed
Change to temporary redirect
When exposed via a tunnel, if the underlying service is switched, the browser remembers the / => /ui redirection so this can be changed to a temporary redirect. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 4e20249 commit 16834cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func main() {
256256
r.HandleFunc("/healthz",
257257
handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)).Methods(http.MethodGet)
258258

259-
r.Handle("/", http.RedirectHandler("/ui/", http.StatusMovedPermanently)).Methods(http.MethodGet)
259+
r.Handle("/", http.RedirectHandler("/ui/", http.StatusTemporaryRedirect)).Methods(http.MethodGet)
260260

261261
tcpPort := 8080
262262

0 commit comments

Comments
 (0)