From 4093d2e244761123bd94e13c94ca719111e07f3d Mon Sep 17 00:00:00 2001 From: Robert Jakubowicz Date: Wed, 23 Aug 2017 16:07:10 -0400 Subject: [PATCH] Fix: when rerouting upload requests use the original url --- packages/rocketchat-file-upload/server/lib/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rocketchat-file-upload/server/lib/proxy.js b/packages/rocketchat-file-upload/server/lib/proxy.js index c5636478c757..d3a1be5c48d9 100644 --- a/packages/rocketchat-file-upload/server/lib/proxy.js +++ b/packages/rocketchat-file-upload/server/lib/proxy.js @@ -74,7 +74,7 @@ WebApp.connectHandlers.stack.unshift({ const options = { hostname: instance.extraInformation.host, port: instance.extraInformation.port, - path: req.url, + path: req.originalUrl, method: 'POST' };