fix: gitea url contain chinese

This commit is contained in:
yystopf 2021-07-23 17:23:01 +08:00
parent f334864f1b
commit 8905f60265
1 changed files with 1 additions and 0 deletions

View File

@ -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