]> source.dussan.org Git - gitea.git/commit
Do not "guess" the file encoding/BOM when using API to upload files (#25828)
authorwxiaoguang <wxiaoguang@gmail.com>
Wed, 12 Jul 2023 09:58:27 +0000 (17:58 +0800)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 09:58:27 +0000 (09:58 +0000)
commit22eeede885327fca0328b7d5b153e7a6c4211ffa
treecc130a4864921f227783a53da5249e3926051f02
parentd1e066f5d6e1ba91f45118de835c3777eee0811f
Do not "guess" the file encoding/BOM when using API to upload files (#25828)

Related issue: #18368

It doesn't seem right to "guess" the file encoding/BOM when using API to
upload files.

The API should save the uploaded content as-is.
services/repository/files/update.go