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
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
Léo-Paul Géneau
gitlab-ce
Commits
787ef979
Commit
787ef979
authored
Nov 02, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bracket styling
parent
8a0455f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/gitlab/testing/request_inspector_middleware.rb
lib/gitlab/testing/request_inspector_middleware.rb
+5
-5
No files found.
lib/gitlab/testing/request_inspector_middleware.rb
View file @
787ef979
...
@@ -49,17 +49,17 @@ module Gitlab
...
@@ -49,17 +49,17 @@ module Gitlab
private
private
def
env_http_headers
(
env
)
def
env_http_headers
(
env
)
Hash
[
*
env
.
select
{
|
k
,
v
|
k
.
start_with?
'HTTP_'
}
Hash
[
*
env
.
select
{
|
k
,
v
|
k
.
start_with?
'HTTP_'
}
.
collect
{
|
k
,
v
|
[
k
.
sub
(
/^HTTP_/
,
''
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
sub
(
/^HTTP_/
,
''
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
split
(
'_'
).
collect
(
&
:capitalize
).
join
(
'-'
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
split
(
'_'
).
collect
(
&
:capitalize
).
join
(
'-'
),
v
]
}
.
sort
.
sort
.
flatten
]
.
flatten
]
end
end
def
http_headers_env
(
headers
)
def
http_headers_env
(
headers
)
Hash
[
*
headers
Hash
[
*
headers
.
collect
{
|
k
,
v
|
[
k
.
split
(
'-'
).
collect
(
&
:upcase
).
join
(
'_'
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
split
(
'-'
).
collect
(
&
:upcase
).
join
(
'_'
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
prepend
(
'HTTP_'
),
v
]
}
.
collect
{
|
k
,
v
|
[
k
.
prepend
(
'HTTP_'
),
v
]
}
.
flatten
]
.
flatten
]
end
end
...
...
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