diff --git a/README.md b/README.md index 78ef40b..fc35d97 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![codecov](https://codecov.io/gh/gin-contrib/location/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/location) [![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/location)](https://goreportcard.com/report/github.com/gin-contrib/location) [![GoDoc](https://godoc.org/github.com/gin-contrib/location?status.svg)](https://godoc.org/github.com/gin-contrib/location) -[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin) This Gin middleware can be used to automatically find and expose the server's hostname and scheme by inspecting information in the incoming `http.Request`. diff --git a/location.go b/location.go index 29d5051..bf9aa6a 100644 --- a/location.go +++ b/location.go @@ -8,6 +8,7 @@ import ( const key = "location" +// Headers represents the header fields used to map schemes and host. type Headers struct { Scheme string Host string