Gin: shared hosting "Host" header field

Created on 8 May 2016  路  1Comment  路  Source: gin-gonic/gin

I'm doing

c.Request.Header.Get("Host")

and it's ""

Do I have to enable gin to get this field from the browser?

Most helpful comment

http.Request.Host

>All comments

http.Request.Host

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oryband picture oryband  路  3Comments

mdnight picture mdnight  路  3Comments

nxvl picture nxvl  路  3Comments

Bloomca picture Bloomca  路  3Comments

mastrolinux picture mastrolinux  路  3Comments