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
da756236
Commit
da756236
authored
Sep 24, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errors: Restore http status text in test
parent
6001c94f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
middleware/errors/errors_test.go
middleware/errors/errors_test.go
+2
-2
No files found.
middleware/errors/errors_test.go
View file @
da756236
...
@@ -82,8 +82,8 @@ func TestErrors(t *testing.T) {
...
@@ -82,8 +82,8 @@ func TestErrors(t *testing.T) {
expectedCode
:
0
,
expectedCode
:
0
,
expectedBody
:
fmt
.
Sprintf
(
"%d %s
\n
"
,
http
.
StatusForbidden
,
expectedBody
:
fmt
.
Sprintf
(
"%d %s
\n
"
,
http
.
StatusForbidden
,
http
.
StatusText
(
http
.
StatusForbidden
)),
http
.
StatusText
(
http
.
StatusForbidden
)),
expectedLog
:
fmt
.
Sprintf
(
"could not load error page %s: %v
\n
"
,
expectedLog
:
fmt
.
Sprintf
(
"
[HTTP %d]
could not load error page %s: %v
\n
"
,
"not_exist_file"
,
notExistErr
),
http
.
StatusForbidden
,
"not_exist_file"
,
notExistErr
),
expectedErr
:
nil
,
expectedErr
:
nil
,
},
},
}
}
...
...
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