From 8905f60265d9bfbd0c96915177b3ee5e098fadca Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 23 Jul 2021 17:23:01 +0800 Subject: [PATCH] fix: gitea url contain chinese --- app/services/gitea/client_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/gitea/client_service.rb b/app/services/gitea/client_service.rb index b88d8382a..868a704c8 100644 --- a/app/services/gitea/client_service.rb +++ b/app/services/gitea/client_service.rb @@ -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