yaml safe load way to go
This commit is contained in:
parent
e104b0b015
commit
dc5ca66549
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class Pastebinner
|
|||
method: :get,
|
||||
url: @scraping_api_url + ENDPOINTS[:scrape_item_meta] + "?i=#{unique_paste_key}"
|
||||
)
|
||||
YAML.load(response.body)
|
||||
YAML.safe_load(response.body).first
|
||||
end
|
||||
|
||||
##### PREPARING THE PASTES FOR SERIALIZATION FOR ES CONFORMING TO PER INDEX SEARCHING
|
||||
|
|
Loading…
Add table
Reference in a new issue