CDN: Fix passing correct prefix to GetContentDeliveryURL (#30777)

This commit is contained in:
Torkel Ödegaard 2021-02-01 11:00:53 +01:00 committed by GitHub
parent 27f5d482d1
commit 561a0a2995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ func (hs *HTTPServer) setIndexViewData(c *models.ReqContext) (*dtos.IndexViewDat
NavTree: navTree, NavTree: navTree,
Sentry: &hs.Cfg.Sentry, Sentry: &hs.Cfg.Sentry,
Nonce: c.RequestNonce, Nonce: c.RequestNonce,
ContentDeliveryURL: hs.Cfg.GetContentDeliveryURL((hs.License.Edition())), ContentDeliveryURL: hs.Cfg.GetContentDeliveryURL(hs.License.ContentDeliveryPrefix()),
} }
if setting.DisableGravatar { if setting.DisableGravatar {