0
0
Fork 0

Fix link verifications when page size exceeds 1MB (#29358)

This commit is contained in:
Claire 2024-02-22 18:31:50 +01:00 committed by GitHub
parent a9496882fc
commit 5152dd869e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 14 deletions

View file

@ -19,7 +19,7 @@ class VerifyLinkService < BaseService
def perform_request!
@body = Request.new(:get, @url).add_headers('Accept' => 'text/html').perform do |res|
res.code == 200 ? res.body_with_limit : nil
res.code == 200 ? res.truncated_body : nil
end
end