Skip to content

Commit d33bf90

Browse files
committed
always set https on redirect on prod
1 parent eacdc65 commit d33bf90

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
version: latest
156156
args: --timeout=5m
157157

158-
- name: Check templ formatting
158+
- name: Check formatting
159159
run: |
160160
templ fmt .
161161
gofmt -l -w .

internal/handlers/logout.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ func (h *Handler) Logout(c *gin.Context) {
2424
return
2525
}
2626

27+
// FIXME: This does not seem to work
2728
scheme := "http"
28-
if c.Request.TLS != nil {
29+
if h.cfg.Application.Environment != "dev" {
2930
scheme = "https"
3031
}
3132

0 commit comments

Comments
 (0)