Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
ac0dd303
Commit
ac0dd303
authored
Aug 11, 2016
by
Matt Holt
Committed by
GitHub
Aug 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into log-request-body
parents
676202a3
c8a99d2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
caddyhttp/httpserver/replacer.go
caddyhttp/httpserver/replacer.go
+0
-3
No files found.
caddyhttp/httpserver/replacer.go
View file @
ac0dd303
...
@@ -87,9 +87,6 @@ func NewReplacer(r *http.Request, rr *ResponseRecorder, emptyValue string) Repla
...
@@ -87,9 +87,6 @@ func NewReplacer(r *http.Request, rr *ResponseRecorder, emptyValue string) Repla
"{fragment}"
:
func
()
string
{
return
r
.
URL
.
Fragment
},
"{fragment}"
:
func
()
string
{
return
r
.
URL
.
Fragment
},
"{proto}"
:
func
()
string
{
return
r
.
Proto
},
"{proto}"
:
func
()
string
{
return
r
.
Proto
},
"{remote}"
:
func
()
string
{
"{remote}"
:
func
()
string
{
if
fwdFor
:=
r
.
Header
.
Get
(
"X-Forwarded-For"
);
fwdFor
!=
""
{
return
fwdFor
}
host
,
_
,
err
:=
net
.
SplitHostPort
(
r
.
RemoteAddr
)
host
,
_
,
err
:=
net
.
SplitHostPort
(
r
.
RemoteAddr
)
if
err
!=
nil
{
if
err
!=
nil
{
return
r
.
RemoteAddr
return
r
.
RemoteAddr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment