benoitc / benoitc/http-parser

Difficult to use when multiple Set-Cookie received

Abierto
#50 5 comentarios 0 reacciones 1 asignado Reclamado por @benoitc Ver en GitHub
improvement
Lenguaje dominante
C
Estrellas
345
Forks
94
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When there are duplicate headers, http-parser concatenates them with ', '. This makes it difficult to parse the individual cookies, e.g.:

```
Key1=Value1; path=/; expires=Fri, 19-Jul-24 03:30:12 GMT, Key2=Value2; path=/
```

Splitting on ', ' won't work. Though it can be parsed, but for other headers (maybe non-standard ones) it'll become impossible. If it's too late to make the value a list or something, what about a user-provided header callback that will run on each complete header line?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.