]> cat aescling's git repositories - mastodon.git/commit
Fix link crawler not specifying accepted content-type (#12646)
authorThibG <thib@sitedethib.com>
Wed, 18 Dec 2019 15:56:06 +0000 (16:56 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 18 Dec 2019 15:56:06 +0000 (16:56 +0100)
commitb364175e1b345e7f36955ba85b483ec2bdd8622d
treef0315e2b5f0b4ea952e5e285ad042ccd0bd6c80b
parent68070e82ccadfef4f101653cf8456f15148c58b7
Fix link crawler not specifying accepted content-type (#12646)

The link crawler expects HTML documents, so set the `Accept`
header accordingly.

Fixes #12618
app/services/fetch_link_card_service.rb
app/services/fetch_oembed_service.rb