1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-27 02:54:19 +00:00
mastodon/spec/fixtures/requests/oembed_json_empty.html
Renato "Lond" Cerqueira 5c5e14c816 Fix undefined method error in sidekiq ()
* Fix undefined method error in sidekiq

Body can be not nil but still be empty, which causes a
`NoMethodError: undefined method `[]' for nil:NilClass` further in the
code. This checks for an empty body to avoid the issue.

* Fix codeclimate issue
2019-01-14 17:28:41 +01:00

8 lines
169 B
HTML

<!DOCTYPE html>
<html>
<head>
<link href='https://host.test/empty_provider.json' rel='alternate' type='application/json+oembed'>
</head>
<body></body>
</html>