WASM served with incorrect MIME type when running locally with jekyll serve
@dennispan y travaille déjà.
Depuis le 22/6/2020.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
I'm trying to use a web assembly (wasm) module, but wasm modules must be served with the content type application/wasm, and when running bundle exec jekyll serve to test the site locally, they are instead served with the content type application/octet-stream used for unrecognized file types. As far as I can tell, this was fixed upstream in Webrick back in 2019, but the github-pages gem is using an outdated version of jekyll which is in turn using an outdated version of webrick that doesn't have the fix.
I tried pushing my changes to github and wasm modules are served with the correct MIME type on a live github pages site. I'm not sure why it works live and is broken locally when the entire point of the github-pages gem is to replicate the same configuration for local testing in order to avoid such issues, but it seems like this can at least be easily fixed by updating the dependencies of the gem.
- Langage dominant
- Ruby
- Étoiles
- 1.9k
- Forks
- 362
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/pages-gem
-
Outdated dependencies will cause problem with end of Node.js 20 supportPeut-être pris @gruenich l’a pris il y a 27 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
GitHub PagesOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
-
CVE-2026-85396 rubyzip path traversal vulnerabilityPeut-être pris @benbalter l’a pris il y a 25 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
-
Error when building docker imageOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Toutes les issues de github/pages-gem
Issues similaires
-
Widget de foto do aluno duplica os controles quando o mesmo aluno está aberto em duas ediçõesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
we-promise/sure#4481 ·
Les mainteneurs répondent en général sous 1 jour
-
data error
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
riscv/riscv-unified-db#2772 ·
Les mainteneurs répondent en général sous 1 jour
-
`judges test --disable=slow,fast` disables nothing and `--enable=slow,fast` skips every test, because the comma is not a separator of categoriesPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 8 jours
-
unsupported shell: "l"Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100