Skip to content

Allow request headers to be specified#5

Merged
MattiasBuelens merged 2 commits intoTHEOplayer:mainfrom
dominics:dominics/request-headers
Mar 19, 2026
Merged

Allow request headers to be specified#5
MattiasBuelens merged 2 commits intoTHEOplayer:mainfrom
dominics:dominics/request-headers

Conversation

@dominics
Copy link
Contributor

A CDN I'm working against checks the Referer header, and rejects requests for the manifest without the right value.

This change lets the user specify one or more --header/-H flags to the record command. I aimed for the same format as Curl for specifying the header name and value. A clap value_parser ensures the header name and value are valid. The headers are used for all requests.

Kinda shoved the header map into the RecordOptions, hope that looks OK to you

And thanks for all your recent improvements!

Copy link
Contributor

@MattiasBuelens MattiasBuelens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks! 😄

@MattiasBuelens MattiasBuelens added the enhancement New feature or request label Mar 19, 2026
@MattiasBuelens MattiasBuelens merged commit cc54d23 into THEOplayer:main Mar 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants