Public files: `.vtt` is served as application/octet-stream under nosniff, and HEAD answers content-length 0 (0.45.0)

Cerrado
#767 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start by reproducing the reported headers with a .vtt file in public/, sovrium start app.yaml, and curl -I localhost:3000/c.vtt; compare HEAD with GET and check the reported mp4 Range behavior. Then trace the static-file serving entry point and its tests. Done means .vtt gets text/vtt, HEAD reports the GET length, and full GET responses advertise byte ranges.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug:wrong-behaviour domain:assets status:ready

Version: 0.45.0

What happens: a file under public/ named c.vtt answers Content-Type: application/octet-stream with X-Content-Type-Options: nosniff. WebVTT's type is text/vtt, and video.tracks depends on these files. Chrome and WebKit still parsed the cues in our test; Firefox and Safari were not tested. Separately, HEAD on a static file answers content-length: 0 where GET gives the real length, and a full GET of an mp4 sends no Accept-Ranges although a Range request correctly answers 206.

Repro: put any .vtt in public/, run sovrium start app.yaml, then curl -I localhost:3000/c.vtt. Measured on the local server; production headers were not measured.

Expected: text/vtt, a truthful HEAD length, and Accept-Ranges: bytes.

Workaround: none in config.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sovrium/sovrium

Todos los issues de sovrium/sovrium

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.