discourse/lib/file_store
David Taylor ef660d5a3e FIX: Return consistent character encodings when downloading S3 uploads
Net::HTTP always returns ASCII-8BIT encoding. File.read auto-detects the encoding. This leads to an encoding inconsistency between a fresh download, and a cached download. This commit ensures all downloaded files are treated equally, by always returning the cached version from the filesystem, even during initial download.

One symptom of this problem is during theme exports: https://meta.discourse.org/t/116907

Related ruby ticket: https://bugs.ruby-lang.org/issues/2567
2019-05-17 11:27:00 +01:00
..
base_store.rb FIX: Return consistent character encodings when downloading S3 uploads 2019-05-17 11:27:00 +01:00
local_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
s3_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00