[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - extensions/source
Petr Mladek
pmladek at suse.cz
Mon Feb 18 06:28:40 PST 2013
extensions/source/update/feed/updatefeed.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e6ec8e83bad7d04f9f7b503626b87af75c052deb
Author: Petr Mladek <pmladek at suse.cz>
Date: Mon Feb 18 11:03:12 2013 +0100
avoid space in the version of the update information provider
LO-4.0.0.3 sends "4.0 .0.3" to the server.
Change-Id: I2cda062778ac3632f89eb5c0d1cc85e57d8d1870
Reviewed-on: https://gerrit.libreoffice.org/2228
Reviewed-by: Jan Holesovsky <kendy at suse.cz>
Tested-by: Jan Holesovsky <kendy at suse.cz>
diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx
index c2dfa99..0789bdc 100644
--- a/extensions/source/update/feed/updatefeed.cxx
+++ b/extensions/source/update/feed/updatefeed.cxx
@@ -358,7 +358,6 @@ UpdateInformationProvider::UpdateInformationProvider(
UNISTRING("org.openoffice.Setup/Product"),
UNISTRING("ooSetupExtension")) >>= extension;
if (!extension.isEmpty()) {
- buf.append(sal_Unicode(' '));
buf.append(extension);
}
rtl::OUString product(buf.makeStringAndClear());
@@ -377,6 +376,8 @@ UpdateInformationProvider::UpdateInformationProvider(
i += product.getLength();
}
+ SAL_INFO("extensions.update", "UpdateUserAgent: " << aUserAgent);
+
m_aRequestHeaderList[0].Name = UNISTRING("Accept-Language");
m_aRequestHeaderList[0].Value = getConfigurationItem( xConfigurationProvider, UNISTRING("org.openoffice.Setup/L10N"), UNISTRING("ooLocale") );
if( !aUserAgent.isEmpty() )
More information about the Libreoffice-commits
mailing list