Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit bc22c70

Browse files
committed
fixup! feat: style login redirect page - [ch1400]
1 parent 0743936 commit bc22c70

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/loginsrv/server-fmt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
internal/loginsrv/server.go

internal/loginsrv/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (srv *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
171171
</div>
172172
</body>
173173
</html>`
174-
w.Header().Set("Content-Type","text/html");
174+
w.Header().Set("Content-Type", "text/html")
175175
w.WriteHeader(http.StatusOK)
176176
_, _ = fmt.Fprint(w, htmlDoc) // Best effort.
177177
}

0 commit comments

Comments
 (0)