about summary refs log tree commit diff
path: root/spec/services/fetch_link_card_service_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-05-10 23:30:07 +0200
committerGitHub <noreply@github.com>2017-05-10 23:30:07 +0200
commita231f915a0734d1089ca76dbd7f4593ef63e8764 (patch)
tree7e60f17290231fad1cd254cfd2d9e06699c4685e /spec/services/fetch_link_card_service_spec.rb
parentc3ef5d5414ac1fee5471d7063616a4b72a408e11 (diff)
Fix #2955 - Send HEAD request ahead of GET when fetching URL previews (#2972)
Diffstat (limited to 'spec/services/fetch_link_card_service_spec.rb')
-rw-r--r--spec/services/fetch_link_card_service_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/services/fetch_link_card_service_spec.rb b/spec/services/fetch_link_card_service_spec.rb
index 46fec295d..681c99c11 100644
--- a/spec/services/fetch_link_card_service_spec.rb
+++ b/spec/services/fetch_link_card_service_spec.rb
@@ -2,6 +2,7 @@ require 'rails_helper'
 
 RSpec.describe FetchLinkCardService do
   before do
+    stub_request(:head, 'http://example.xn--fiqs8s/').to_return(status: 200, headers: { 'Content-Type' => 'text/html' })
     stub_request(:get, 'http://example.xn--fiqs8s/').to_return(request_fixture('idn.txt'))
   end