mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-03 16:05:07 +00:00
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:

committed by
Andras Timar

parent
9fd905563b
commit
2a19330823
@ -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;
|
||||
|
Reference in New Issue
Block a user