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
5072d70f
Commit
5072d70f
authored
Feb 13, 2017
by
Toby Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #1388 dont attempt to hide Caddyfile if non existant
parent
ce7d3db1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
caddyhttp/httpserver/plugin.go
caddyhttp/httpserver/plugin.go
+6
-0
No files found.
caddyhttp/httpserver/plugin.go
View file @
5072d70f
...
...
@@ -55,6 +55,12 @@ func init() {
func
hideCaddyfile
(
cctx
caddy
.
Context
)
error
{
ctx
:=
cctx
.
(
*
httpContext
)
for
_
,
cfg
:=
range
ctx
.
siteConfigs
{
// if no Caddyfile exists exit.
if
cfg
.
originCaddyfile
==
""
{
return
nil
}
absRoot
,
err
:=
filepath
.
Abs
(
cfg
.
Root
)
if
err
!=
nil
{
return
err
...
...
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