Set proper charset on log files
This commit is contained in:
parent
ec1c8efd43
commit
147ba3ca31
|
@ -154,7 +154,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
|
|||
try {
|
||||
auto store = destStore.dynamic_pointer_cast<BinaryCacheStore>();
|
||||
if (uploadLogsToBinaryCache && store && pathExists(result.logFile)) {
|
||||
store->upsertFile("log/" + baseNameOf(buildDrvPath), readFile(result.logFile), "text/plain");
|
||||
store->upsertFile("log/" + baseNameOf(buildDrvPath), readFile(result.logFile), "text/plain; charset=utf-8");
|
||||
unlink(result.logFile.c_str());
|
||||
}
|
||||
} catch (...) {
|
||||
|
|
Loading…
Reference in a new issue