Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added support for setting the "origin" http header. #349

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

sapireli
Copy link
Contributor

@sapireli sapireli commented Jan 14, 2024

This commit adds an http origin header which is by default set to be the same as the referer without the trailing '/'.
This is to support certain popular Eastern European IPTV providers.

A more elegant approach would be to define a origin header format for each channel specified in the m3u8 file. Perhaps in a future commit if i have the time.

Setting it to the same as referer without the trailing '/'. This is to support certain popular IPTV providers.
Copy link

vercel bot commented Jan 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
iptvnator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2024 10:03am

@ghost
Copy link

ghost commented Jan 14, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d258089) 57.30% compared to head (6dc3f28) 57.30%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##           electron     #349   +/-   ##
=========================================
  Coverage     57.30%   57.30%           
=========================================
  Files            56       56           
  Lines          1574     1574           
  Branches        196      196           
=========================================
  Hits            902      902           
  Misses          671      671           
  Partials          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@4gray
Copy link
Owner

4gray commented Feb 2, 2024

Thank you for the contribution!

@4gray 4gray merged commit de25cbb into 4gray:electron Feb 2, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants