Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
gitlab-ce
Commits
e9ba9905
Commit
e9ba9905
authored
Jan 29, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid an ambiguously formattable directive
parent
8843aae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
internal/sendfile/sendfile_test.go
internal/sendfile/sendfile_test.go
+4
-5
No files found.
internal/sendfile/sendfile_test.go
View file @
e9ba9905
...
...
@@ -77,11 +77,10 @@ func TestAllowExistentContentHeaders(t *testing.T) {
func
TestSuccessOverrideContentHeadersFeatureEnabled
(
t
*
testing
.
T
)
{
fixturePath
:=
"../../testdata/forgedfile.png"
httpHeaders
:=
map
[
string
]
string
{
headers
.
ContentTypeHeader
:
"image/png"
,
headers
.
ContentDispositionHeader
:
"inline"
,
"Range"
:
"bytes=1-2"
,
}
httpHeaders
:=
make
(
map
[
string
]
string
)
httpHeaders
[
headers
.
ContentTypeHeader
]
=
"image/png"
httpHeaders
[
headers
.
ContentDispositionHeader
]
=
"inline"
httpHeaders
[
"Range"
]
=
"bytes=1-2"
resp
:=
makeRequest
(
t
,
fixturePath
,
httpHeaders
)
require
.
Equal
(
t
,
"image/png"
,
resp
.
Header
.
Get
(
headers
.
ContentTypeHeader
))
...
...
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