Skip to content

Commit

Permalink
Support more vk error prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
imustafin committed Nov 23, 2024
1 parent ef9ab5b commit b91edf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/parse_vk_file_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def vk_error?(file)
start = file.read(50)
file.rewind

return false unless start.start_with?('<!DOCTYPE html>')
return false unless ['<!DOCTYPE html>', ' <!DOCTYPE html>'].any? { |s| start.start_with?(s) }

doc = Nokogiri::HTML(file)

Expand Down

0 comments on commit b91edf1

Please sign in to comment.