fix: gitea url contain chinese
This commit is contained in:
parent
f334864f1b
commit
8905f60265
|
@ -108,6 +108,7 @@ class Gitea::ClientService < ApplicationService
|
|||
def full_url(api_rest, action='post')
|
||||
url = [api_url, api_rest].join('').freeze
|
||||
url = action === 'get' ? url : URI.escape(url)
|
||||
url = URI.escape(url) unless url.ascii_only?
|
||||
puts "[gitea] request url: #{url}"
|
||||
return url
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue