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
d1de6fd4
Commit
d1de6fd4
authored
Aug 21, 2019
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Column was renamed in 12.2
parent
e0826b0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config/initializers/rest-client-hostname_override.rb
config/initializers/rest-client-hostname_override.rb
+1
-1
spec/initializers/rest-client-hostname_override_spec.rb
spec/initializers/rest-client-hostname_override_spec.rb
+1
-1
No files found.
config/initializers/rest-client-hostname_override.rb
View file @
d1de6fd4
...
@@ -40,7 +40,7 @@ module RestClient
...
@@ -40,7 +40,7 @@ module RestClient
end
end
def
allow_settings_local_requests?
def
allow_settings_local_requests?
Gitlab
::
CurrentSettings
.
allow_local_requests_from_hooks_and_services?
Gitlab
::
CurrentSettings
.
allow_local_requests_from_
web_
hooks_and_services?
end
end
end
end
...
...
spec/initializers/rest-client-hostname_override_spec.rb
View file @
d1de6fd4
...
@@ -101,7 +101,7 @@ describe 'rest-client dns rebinding protection' do
...
@@ -101,7 +101,7 @@ describe 'rest-client dns rebinding protection' do
context
'when local requests are allowed'
do
context
'when local requests are allowed'
do
before
do
before
do
stub_application_setting
(
allow_local_requests_from_hooks_and_services:
true
)
stub_application_setting
(
allow_local_requests_from_
web_
hooks_and_services:
true
)
end
end
it
'allows an external request'
do
it
'allows an external request'
do
...
...
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