summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-10-08 23:26:39 +0200
committerAndras Timar <andras.timar@collabora.com>2015-10-15 17:13:00 +0200
commit17d6c6fdebc098107e280d4a68d8bcfa91bd23e9 (patch)
treecb867dad34906fad0f80b3c0c665d86aee194d17 /swext
parent0de97240cf6dfcf31455a29841629192390fb058 (diff)
swext: increment the extension version number to 1.2.0
... and also set the User-Agent header so the servers know who's messing with them. Change-Id: I0173db05868c5fcd0f85435adf78884ca562596d (cherry picked from commit 18b934af9979522c8cff1ff76504ce19c3e6916d)
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java2
-rw-r--r--swext/mediawiki/src/description.xml2
2 files changed, 3 insertions, 1 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index b40b5f107d7d..8a15621384ed 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -643,6 +643,8 @@ public class Helper
// ((HttpsURLConnection) conn).setSSLSocketFactory(new LoggingProtocolSocketFactory());
conn.setRequestMethod(method);
+ // TODO: is it possible to read the version from the extension metadata?
+ conn.setRequestProperty("User-Agent", "LibreOffice Wiki Publisher 1.2.0");
// note: don't connect yet so that the caller can do some further setup
return conn;
diff --git a/swext/mediawiki/src/description.xml b/swext/mediawiki/src/description.xml
index 1e637bda3268..e83d4f308592 100644
--- a/swext/mediawiki/src/description.xml
+++ b/swext/mediawiki/src/description.xml
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:d="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
- <version value="1.1.2"/>
+ <version value="1.2.0"/>
<identifier value="com.sun.wiki-publisher"/>
<display-name>
<name lang="en-US">Wiki Publisher</name>