Skip to content

Commit 1739b92

Browse files
Log the client protocol used to contact the server (#37)
* Log client http/https protocol
1 parent e99fa4a commit 1739b92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

handler/handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func findLocation(rw http.ResponseWriter, headers http.Header) (string, string)
8989
"CityLatLong": headers.Get("X-AppEngine-CityLatLong"),
9090
"Country": headers.Get("X-AppEngine-Country"),
9191
"Region": headers.Get("X-AppEngine-Region"),
92+
"Proto": headers.Get("X-Forwarded-Proto"),
9293
}
9394

9495
// First, try the given lat/lon. Avoid invalid values like 0,0.

0 commit comments

Comments
 (0)