diff options
author | Ted Unangst <tedu@tedunangst.com> | 2019-08-21 19:32:45 -0400 |
---|---|---|
committer | Ted Unangst <tedu@tedunangst.com> | 2019-08-21 19:32:45 -0400 |
commit | c2f7d512c5580dc7a184dd119b9071d3d3f45a42 (patch) | |
tree | 8f3dafa48422547af48654ca797762932cc5aec3 | |
parent | 73f6f6c19def829aeb79b1d2b91449f81f4fc67b (diff) |
just hostname here, minus port, should make things easier to work with
-rw-r--r-- | luafunctions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luafunctions.go b/luafunctions.go index 7797522..a2fd4d0 100644 --- a/luafunctions.go +++ b/luafunctions.go @@ -46,7 +46,7 @@ func lwritestring(w io.Writer, s string) { } func lreqgethost(req *http.Request) string { - return req.URL.Host + return req.URL.Hostname() } func lreqsethost(req *http.Request, host string) { |