Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

dmcgowan
Copy link
Member

This is a backport of the user agent fix for 2.7. Since the custom header change wasn't added in yet to 1.2, this just always sets the user agent to the default (the only difference was in creation of a new resolver).

Currently the user agent is only being used on the initial
resolve request, then switching to the default user agent.
This ensures the correct user agent is always used. There is
a larger fix in progress which does this is a cleaner way, but
the scope of this change is fixing the user agent issue.

Signed-off-by: Derek McGowan <[email protected]>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-io
Copy link

Codecov Report

Merging #3338 into release/1.2 will decrease coverage by 2.82%.
The diff coverage is 83.33%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release/1.2    #3338      +/-   ##
===============================================
- Coverage        43.75%   40.92%   -2.83%     
===============================================
  Files              101       70      -31     
  Lines            10763     9434    -1329     
===============================================
- Hits              4709     3861     -848     
+ Misses            5319     5012     -307     
+ Partials           735      561     -174
Flag Coverage Δ
#linux ?
#windows 40.92% <83.33%> (+0.06%) ⬆️
Impacted Files Coverage Δ
remotes/docker/resolver.go 59.2% <100%> (+0.83%) ⬆️
remotes/docker/authorizer.go 67.98% <76.92%> (+0.44%) ⬆️
snapshots/native/native.go 1.78% <0%> (-41.52%) ⬇️
archive/tar.go 16.99% <0%> (-26.8%) ⬇️
metadata/snapshot.go 21.53% <0%> (-24.28%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
runtime/v2/shim/shim_windows.go 40.49% <0%> (-0.62%) ⬇️
oci/spec_opts.go 20.71% <0%> (-0.28%) ⬇️
mount/temp_unix.go
... and 30 more

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 71f5018...1af8e6e. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

@crosbymichael crosbymichael merged commit 1bda2ed into containerd:release/1.2 Jun 12, 2019
Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

PR in master is #3335

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.

6 participants