This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Suppress backtrace from Request#perform (
#5174
)
pull/4/head
Daigo 3 Dango
7 years ago
committed by
Eugen Rochko
parent
c567c87453
commit
01d6aa0397
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/lib/request.rb
+ 1
- 1
app/lib/request.rb
View File
@ -32,7 +32,7 @@ class Request
def
perform
http_client
.
headers
(
headers
)
.
public_send
(
@verb
,
@url
.
to_s
,
@options
)
rescue
=
>
e
raise
e
.
class
,
"
#{
e
.
message
}
on
#{
@url
}
"
raise
e
.
class
,
"
#{
e
.
message
}
on
#{
@url
}
"
,
e
.
backtrace
[
0
]
end
def
headers
Write
Preview
Loading…
Cancel
Save