Browse Source

providers: change versions header

Ifedapo Olarewaju 6 years ago
parent
commit
0abcdf452a

+ 1 - 1
packages/@uppy/companion/src/uppy.js

@@ -218,7 +218,7 @@ const getOptionsMiddleware = (options) => {
       options,
       s3Client,
       authToken: req.header('uppy-auth-token') || req.query.uppyAuthToken,
-      clientVersion: req.header('uppy-client') || req.query.uppyClient,
+      clientVersion: req.header('uppy-versions') || req.query.uppyVersions,
       buildURL: getURLBuilder(options)
     }
     next()

+ 1 - 1
packages/@uppy/provider-views/src/index.js

@@ -413,7 +413,7 @@ module.exports = class ProviderView {
     const authState = btoa(JSON.stringify({ origin: location.origin }))
     // @todo remove this hardcoded version
     const clientVersion = 'companion-client:1.0.2'
-    const link = `${this.provider.authUrl()}?state=${authState}&uppyClient=${clientVersion}`
+    const link = `${this.provider.authUrl()}?state=${authState}&uppyVersions=${clientVersion}`
 
     const authWindow = window.open(link, '_blank')
     const handleToken = (e) => {