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
Łukasz Nowak
caddy
Commits
e94e90b0
Commit
e94e90b0
authored
Aug 04, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new docker link, DO link, and enhanced comment
parent
7173764d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
README.md
README.md
+3
-1
middleware/replacer.go
middleware/replacer.go
+3
-1
No files found.
README.md
View file @
e94e90b0
...
...
@@ -52,7 +52,7 @@ Caddy is available as a Docker container from any of these sources:
-
[
abiosoft/caddy
](
https://registry.hub.docker.com/u/abiosoft/caddy/
)
-
[
darron/caddy
](
https://registry.hub.docker.com/u/darron/caddy/
)
-
[
jumanjiman/caddy
](
https://registry.hub.docker.com/u/jumanjiman/caddy/
)
-
[
zenithar/nano-caddy
](
https://registry.hub.docker.com/u/zenithar/nano-caddy/
)
#### 3rd-party libraries
...
...
@@ -118,6 +118,8 @@ This project would not be what it is without your help. Please see the [contribu
Thanks for making Caddy -- and the Web -- better!
Special thanks to
[
![DigitalOcean
](
http://i.imgur.com/sfGr0eY.png
)
](https://www.digitalocean.com) for hosting the Caddy project.
...
...
middleware/replacer.go
View file @
e94e90b0
...
...
@@ -24,7 +24,9 @@ type replacer struct {
// NewReplacer makes a new replacer based on r and rr.
// Do not create a new replacer until r and rr have all
// the needed values, because this function copies those
// values into the replacer.
// values into the replacer. rr may be nil if it is not
// available. emptyValue should be the string that is used
// in place of empty string (can still be empty string).
func
NewReplacer
(
r
*
http
.
Request
,
rr
*
responseRecorder
,
emptyValue
string
)
Replacer
{
rep
:=
replacer
{
replacements
:
map
[
string
]
string
{
...
...
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