[Libreoffice-commits] online.git: loolwsd/UserMessages.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Aug 31 04:37:38 UTC 2016


 loolwsd/UserMessages.hpp |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 88f3a213b0e0d7ac4827fa3d8fbd9ca9a245abd7
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Aug 30 18:16:03 2016 -0400

    loolwsd: first character of 404 messages are trimmed
    
    For some reason Poco trims the first character
    of 404 and other HTTP error messages.
    We need to prefix messages with a space to
    avoid having the first character chopped-off.
    
    Change-Id: I8cbda9f4b5df894418f1dedf390b8b43a61e5d11
    Reviewed-on: https://gerrit.libreoffice.org/28521
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/UserMessages.hpp b/loolwsd/UserMessages.hpp
index 5208b09..2ef4c8b 100644
--- a/loolwsd/UserMessages.hpp
+++ b/loolwsd/UserMessages.hpp
@@ -12,8 +12,10 @@
 #ifndef INCLUDED_USERMESSAGES_HPP
 #define INCLUDED_USERMESSAGES_HPP
 
-constexpr auto SERVICE_UNAVALABLE_INTERNAL_ERROR = "Service is unavailable. Please try again later and report to your administrator if the issue persists.";
-constexpr auto SERVICE_UNAVALABLE_LIMIT_REACHED = "This server has reached the number of connections or documents it supports at a given time.";
+//NOTE: For whatever reason Poco seems to trim the first character.
+
+constexpr auto SERVICE_UNAVALABLE_INTERNAL_ERROR = " Service is unavailable. Please try again later and report to your administrator if the issue persists.";
+constexpr auto SERVICE_UNAVALABLE_LIMIT_REACHED = " This server has reached the number of connections or documents it supports at a given time.";
 
 #endif
 


More information about the Libreoffice-commits mailing list