Skip to content

Commit

Permalink
Avoid stuttering slasshes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jum committed May 12, 2024
1 parent 56a2261 commit a87fadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngcplogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ func (l *nGCPLogger) extractCaddyFromPayload(m map[string]any, entry *logging.En
v := val.(map[string]any)
hr.Request.Method = v["method"].(string)
_, isTLS := v["tls"]
var h = "http://"
var h = "http"
if isTLS {
h = "https://"
h = "https"
}
hr.Request.URL = &url.URL{
Scheme: h,
Expand Down

0 comments on commit a87fadf

Please sign in to comment.