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

xpbliss picture xpbliss  路  3Comments

olegsobchuk picture olegsobchuk  路  3Comments

kekemuyu picture kekemuyu  路  3Comments

ccaza picture ccaza  路  3Comments

mdnight picture mdnight  路  3Comments