Fix for thread resolve service and process feed service url method
This commit is contained in:
parent
2f21f4cc01
commit
cff0b03cbb
2 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,11 @@ class FetchAtomService < BaseService
|
|||
response = http_client.head(url)
|
||||
|
||||
Rails.logger.debug "Remote status HEAD request returned code #{response.code}"
|
||||
|
||||
response = http_client.get(url) if response.code == 405
|
||||
|
||||
Rails.logger.debug "Remote status GET request returned code #{response.code}"
|
||||
|
||||
return nil if response.code != 200
|
||||
|
||||
if response.mime_type == 'application/atom+xml'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue