diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-10-05 09:26:30 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-10-26 10:38:27 +0200 |
commit | 588710a7acb5f68e14a1fdc07228c4083b2884d4 (patch) | |
tree | 7f48bf743b003bc1215dafdd41abdcc5c1e741fc /tpl/resources | |
parent | ed930db2f075c7d9235a5b30b5f4657941630a72 (diff) | |
download | hugo-588710a7acb5f68e14a1fdc07228c4083b2884d4.tar.gz hugo-588710a7acb5f68e14a1fdc07228c4083b2884d4.zip |
media: Rename application/javascript, application/typescript to text/javascript etc.
The former is deprecated.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
See https://discourse.gohugo.io/t/mime-type-for-javascript-is-now-text-javascript/40813
Diffstat (limited to 'tpl/resources')
-rw-r--r-- | tpl/resources/integration_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tpl/resources/integration_test.go b/tpl/resources/integration_test.go index 06f98eeee..7662f7b6b 100644 --- a/tpl/resources/integration_test.go +++ b/tpl/resources/integration_test.go @@ -65,10 +65,10 @@ Image Orig: /blog/images/pixel.png|image/png|1|1| Image Copy1: /blog/images/copy_hu8aa3346827e49d756ff4e630147c42b5_70_3x4_resize_box_3.png|image/png|3|4| Image Copy2: /blog/images/copy2.png|image/png|3|4 Image Copy3: image/png|3|4| -Orig: /blog/js/foo.js|application/javascript|let foo;| -Copy1: /blog/js/copies/bar.js|application/javascript|let foo;| -Copy2: /blog/js/copies/baz.a677329fc6c4ad947e0c7116d91f37a2.js|application/javascript|let foo;| -Copy3: /blog/js/copies/moo.a677329fc6c4ad947e0c7116d91f37a2.min.js|application/javascript|let foo| +Orig: /blog/js/foo.js|text/javascript|let foo;| +Copy1: /blog/js/copies/bar.js|text/javascript|let foo;| +Copy2: /blog/js/copies/baz.a677329fc6c4ad947e0c7116d91f37a2.js|text/javascript|let foo;| +Copy3: /blog/js/copies/moo.a677329fc6c4ad947e0c7116d91f37a2.min.js|text/javascript|let foo| `) |