Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

Re: [cgit PATCH] use Host: header to generate cgit_hosturl

From: Eric Wong <hidden>
Date: 2016-06-15 22:45:16

Lars Hjemli [off-list ref] wrote:
On Mon, Sep 1, 2008 at 8:30 AM, Eric Wong [off-list ref] wrote:
quoted
So use the "Host" header if it is available and fall back to
SERVER_NAME/SERVER_PORT for some clients that don't set
HTTP_HOST.
Maybe it would be better to use a new cgitrc parameter as fallback if
the client doesn't provide the "Host" header?
That sounds a bit hackish to me since HTTP_HOST, SERVER_NAME and
SERVER_PORT are all standardized.  Anyhow, it's your call :)

-- 
Eric Wong
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help