commit | 5edda56502f8651a4220320cfdd73304162e9389 | [log] [tgz] |
---|---|---|
author | bazel.build machine account <15028808+bazel-io@users.noreply.github.com> | Tue Nov 07 11:53:00 2023 -0500 |
committer | GitHub <noreply@github.com> | Tue Nov 07 17:53:00 2023 +0100 |
tree | 4cd0d166279d251617444e43efe76f2abedc3e7e | |
parent | c37e4112ccfae0703fc2ed35300fe79e1d8a5fac [diff] |
[7.0.0] Set the content type on the release notes HTML files. (#20079) Fixes [#1764](https://github.com/bazelbuild/continuous-integration/issues/1764). (Except for already published files, which I'll write a separate script to retroactively fix.) Closes #19955. Commit https://github.com/bazelbuild/bazel/commit/6747679bee18537bb7ff60d625111b8687731d52 PiperOrigin-RevId: 579182298 Change-Id: Id8dbafbf532d0b82e721edc31837a7870ec4a900 Co-authored-by: Tiago Quelhas <tjgq@google.com>
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index c648634..8f7280b 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh
@@ -199,6 +199,8 @@ fi create_index_html "${artifact_dir}" > "${artifact_dir}/index.html" gsutil -m cp "${artifact_dir}/**" "gs://bazel/${release_path}" + # Set the content type on index.html so it isn't autodetected incorrectly by the browser. + gsutil setmeta -h "Content-Type: text/html; charset=utf-8" "gs://bazel/${release_path}/index.html" fi }