benoitc / benoitc/http-parser

Difficult to use when multiple Set-Cookie received

オープン
#50 コメント 5 件 リアクション 0 件 担当者 1 名 @benoitc が担当を希望しています GitHub で見る
improvement
主要言語
C
スター
345
フォーク
94
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。