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

lib/fetcher: Allow clients to append to User-Agent #1496

Closed
wants to merge 2 commits into from

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Mar 14, 2018

We do already have http-headers, which potentially could be used to
allow clients to completely override the field, but it seems like the
more common use case is simply to append.

@jlebon
Copy link
Member Author

jlebon commented Mar 14, 2018

Leaving WIP for feedback before adding tests.

@alexlarsson
Copy link
Member

Looks good to me.

@cgwalters
Copy link
Member

Looks sane to me too.

We do already have `http-headers`, which potentially could be used to
allow clients to completely override the field, but it seems like the
more common use case is simply to append.
@jlebon jlebon changed the title WIP: allow clients to append to user agent string lib/fetcher: Allow clients to append to User-Agent Mar 16, 2018
@jlebon jlebon removed the WIP label Mar 16, 2018
@jlebon
Copy link
Member Author

jlebon commented Mar 16, 2018

Dropped WIP and added tests! ⬆️

@cgwalters
Copy link
Member

@rh-atomic-bot r+ a13bb36

@rh-atomic-bot
Copy link

⌛ Testing commit a13bb36 with merge 4e4436b...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: cgwalters
Pushing 4e4436b to master...

alexlarsson added a commit to alexlarsson/flatpak that referenced this pull request Mar 28, 2018
This uses the new ostree feature at:
  ostreedev/ostree#1496

Note, this will only work with the current ostree master,
and does nothing on older versions.
rh-atomic-bot pushed a commit to flatpak/flatpak that referenced this pull request Mar 28, 2018
This uses the new ostree feature at:
  ostreedev/ostree#1496

Note, this will only work with the current ostree master,
and does nothing on older versions.

Closes: #1533
Approved by: mwleeds
@jlebon jlebon deleted the pr/custom-user-agent branch June 14, 2018 01:50
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.

None yet

4 participants