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
a58336f6
Commit
a58336f6
authored
Feb 01, 2021
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register Faraday middlewares within an initializer
parent
b9686944
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
config/initializers/faraday.rb
config/initializers/faraday.rb
+3
-0
lib/gitlab/faraday.rb
lib/gitlab/faraday.rb
+0
-7
No files found.
config/initializers/faraday.rb
0 → 100644
View file @
a58336f6
# frozen_string_literal: true
::
Faraday
::
Request
.
register_middleware
(
gitlab_error_callback:
->
{
::
Gitlab
::
Faraday
::
ErrorCallback
})
lib/gitlab/faraday.rb
deleted
100644 → 0
View file @
b9686944
# frozen_string_literal: true
module
Gitlab
module
Faraday
::
Faraday
::
Request
.
register_middleware
(
gitlab_error_callback:
->
{
::
Gitlab
::
Faraday
::
ErrorCallback
})
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