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

client: allow UserAgent to be set #119

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

tmatth
Copy link
Contributor

@tmatth tmatth commented Apr 12, 2022

It's helpful for debugging to be able to override the hardcoded gortsplib User-Agent header, as we can have multiple gortsplib-based clients. I'd also be open to making this a config option or a parameter to the Client, but this was the lowest impact change.

It also has the advantage that this parameter can be changed by e.g., docker image without rebuilding.

@aler9
Copy link
Member

aler9 commented Apr 12, 2022

Hello, rebuild the feature as a Client's parameter and it will get merged.

@tmatth tmatth changed the title client: allow RTSP_USER_AGENT to be set from env client: allow RTSP_USER_AGENT to be set Apr 12, 2022
@tmatth tmatth changed the title client: allow RTSP_USER_AGENT to be set client: allow UserAgent to be set Apr 12, 2022
@tmatth tmatth force-pushed the feature/user-agent-from-env branch from 4a79164 to 70e3704 Compare April 12, 2022 20:44
@codecov-commenter
Copy link

Codecov Report

Merging #119 (70e3704) into main (d479e9e) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #119      +/-   ##
==========================================
+ Coverage   84.24%   84.25%   +0.01%     
==========================================
  Files          56       56              
  Lines        5724     5729       +5     
==========================================
+ Hits         4822     4827       +5     
  Misses        636      636              
  Partials      266      266              
Impacted Files Coverage Δ
client.go 76.85% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d479e9e...70e3704. Read the comment docs.

client.go Outdated Show resolved Hide resolved
@tmatth tmatth force-pushed the feature/user-agent-from-env branch from 70e3704 to 78a7d08 Compare April 12, 2022 21:10
@tmatth tmatth force-pushed the feature/user-agent-from-env branch from 78a7d08 to 76d766e Compare April 12, 2022 21:11
@tmatth
Copy link
Contributor Author

tmatth commented Apr 13, 2022

Hello, rebuild the feature as a Client's parameter and it will get merged.

Done.

@aler9 aler9 merged commit 2f8186c into bluenviron:main Apr 15, 2022
@aler9
Copy link
Member

aler9 commented Apr 15, 2022

merged, thanks

@github-actions
Copy link

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants