We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac53450 commit eb34287Copy full SHA for eb34287
pkg-new/replicatedapi/reporting.go
@@ -50,8 +50,10 @@ func (c *client) getReportingInfoHeaders(reportingInfo *ReportingInfo) map[strin
50
51
// add headers from client
52
channel, _ := c.getChannelFromLicense() // ignore error
53
- headers["X-Replicated-DownstreamChannelID"] = channel.ChannelID
54
- headers["X-Replicated-DownstreamChannelName"] = channel.ChannelName
+ if channel != nil {
+ headers["X-Replicated-DownstreamChannelID"] = channel.ChannelID
55
+ headers["X-Replicated-DownstreamChannelName"] = channel.ChannelName
56
+ }
57
58
headers["X-Replicated-K8sVersion"] = versions.K0sVersion
59
headers["X-Replicated-K8sDistribution"] = DistributionEmbeddedCluster
0 commit comments