]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/web: log complete URLs
authorBryan C. Mills <bcmills@google.com>
Wed, 4 Sep 2019 16:43:50 +0000 (12:43 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 11 Sep 2019 14:54:57 +0000 (14:54 +0000)
commit51be44bfafb43e034fae09f259b53b48c395f89b
treec758323a8fef506cc7f94ded732708bd3740e41c
parent23f7398671280c7f2493796f9b22d7bf70fb38d2
cmd/go/internal/web: log complete URLs

Incoming URLs may omit the scheme to indicate “either HTTP or HTTPS”.
For such URLs, log the scheme actually used instead of leaving it out.

(This issue was noticed while triaging #34075.)

Updates #34075

Change-Id: I39e5ca83543dd780258d41d5c2c4ba907cd20e5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/193262
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/web/http.go
src/cmd/go/testdata/script/mod_getx.txt [new file with mode: 0644]