Proxy: Preprocess the localization files so that they contain the full URI.

Otherwise they are not passed through the proxy...

Change-Id: I307018e760ff99ac42c25ab7fa2fa3df4911ef8d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94811
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
Jan Holesovsky
2020-05-25 22:39:41 +02:00
committed by Andras Timar
parent 9fd905563b
commit 2a19330823
6 changed files with 522 additions and 517 deletions

View File

@ -347,7 +347,12 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request,
throw Poco::FileNotFoundException("Invalid URI request: [" + requestUri.toString() + "].");
const std::string loleafletHtml = config.getString("loleaflet_html", "loleaflet.html");
if (endPoint == loleafletHtml)
if (endPoint == loleafletHtml ||
endPoint == "help-localizations.json" ||
endPoint == "localizations.json" ||
endPoint == "locore-localizations.json" ||
endPoint == "uno-localizations.json" ||
endPoint == "uno-localizations-override.json")
{
preprocessFile(request, requestDetails, message, socket);
return;