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

Adding optional headers parameter to Http client request #386

Conversation

blackgerman
Copy link

@blackgerman blackgerman commented Feb 16, 2024

Context 🤔

App cast an http request to fetch version update file on a remote server. Issue is, when the file is protected (example: file is on a private remote repository), app cannot access the files without headers.

What did we do ? 🏮

Added optional header parameters to AppcastConfiguration object so that we can easily pass set of headers if we need to.

What to test ? 🧪

Test that the added parameter is really optional and doesn't break the basic flow.

@blackgerman blackgerman force-pushed the adding_header_to_http_client_appcast branch from adbfea2 to 8c97caa Compare February 16, 2024 20:11
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (212c232) 91.84% compared to head (8c97caa) 91.84%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   91.84%   91.84%           
=======================================
  Files          10       10           
  Lines        1091     1092    +1     
=======================================
+ Hits         1002     1003    +1     
  Misses         89       89           

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

@larryaasen
Copy link
Owner

@blackgerman Thanks for your PR and your suggestion about client headers, which I think is a useful idea. I decided to go a slightly different route with the implementation, so I will close this PR and make the updates myself.

@larryaasen larryaasen closed this Mar 23, 2024
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.

2 participants