Skip to content

Content-Range header parsing #153

Open
@annevk

Description

@annevk

I looked at https://wicg.github.io/background-fetch/#extract-content-range-values and one problem I found is that this will lead to different results between

Content-Range: x, y

and

Content-Range: x
Content-Range: y

which is something we should avoid (with the notable exception of Set-Cookie). Please use https://fetch.spec.whatwg.org/#concept-header-list-get to get the value instead.

The implications for this algorithm are that either you need to handle values containing , in a special way or you let them be treated as errors. Not sure what matches implementations better.

The outcome here might also impact annevk/orb#16 as that has rather lax header checking.

(I suspect we might also want to move this into Fetch if this is to be shared between this, media elements, and ORB.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions