Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
gitlab-shell
Commits
708e60c2
Commit
708e60c2
authored
Sep 13, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider 300 a successful response also
parent
181b9b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/http_helper.rb
lib/http_helper.rb
+2
-1
No files found.
lib/http_helper.rb
View file @
708e60c2
...
@@ -83,7 +83,8 @@ module HTTPHelper
...
@@ -83,7 +83,8 @@ module HTTPHelper
$logger
.
info
(
'finished HTTP request'
,
method:
method
.
to_s
.
upcase
,
url:
url
,
duration:
Time
.
new
-
start_time
)
$logger
.
info
(
'finished HTTP request'
,
method:
method
.
to_s
.
upcase
,
url:
url
,
duration:
Time
.
new
-
start_time
)
end
end
if
response
.
code
==
"200"
case
response
when
Net
::
HTTPSuccess
,
Net
::
HTTPMultipleChoices
$logger
.
debug
(
'Received response'
,
code:
response
.
code
,
body:
response
.
body
)
$logger
.
debug
(
'Received response'
,
code:
response
.
code
,
body:
response
.
body
)
else
else
$logger
.
error
(
'Call failed'
,
method:
method
.
to_s
.
upcase
,
url:
url
,
code:
response
.
code
,
body:
response
.
body
)
$logger
.
error
(
'Call failed'
,
method:
method
.
to_s
.
upcase
,
url:
url
,
code:
response
.
code
,
body:
response
.
body
)
...
...
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