Commits

Patrick Streule committed 8403973

ACDEV-1140: fix missing key

Comments (0)

Files changed (1)

lib/middleware/request.js

             var unverifiedClientKey = authentication.extractUnverifiedClientKeyFromRequest(req, addon);
 
             req.context = _.extend({
-                http: hostRequest(addon, params.userId, unverifiedClientKey)
+                http: hostRequest(addon, params.userId, unverifiedClientKey || params.clientKey)
             }, res.locals);
         }