FIX log writing failed. xE6 from ASCII-8BIT to UTF-8

This commit is contained in:
Jasder 2020-12-07 16:04:13 +08:00
parent 087ad08303
commit 61c8e41136
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class Gitea::ClientService < ApplicationService
def log_error(status, body)
puts "[gitea] status: #{status}"
puts "[gitea] body: #{body}"
puts "[gitea] body: #{body&.force_encoding('UTF-8')}"
end
def fix_body(body)