Skip to content

Commit

Permalink
handle unsafe characters in dois
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 7, 2019
1 parent 97f4fe8 commit 4d61fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/crossref_doi_by_id_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def perform(id, options={})
}
}

url = "http://localhost/dois/#{doi}"
url = "http://localhost/dois/#{Addressable::URI.encode(doi)}"
response = Maremma.put(url, accept: 'application/vnd.api+json',
content_type: 'application/vnd.api+json',
data: data.to_json,
Expand Down

0 comments on commit 4d61fe2

Please sign in to comment.