summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-10-08 23:26:39 +0200
committerMichael Stahl <mstahl@redhat.com>2015-10-09 10:14:21 +0200
commit18b934af9979522c8cff1ff76504ce19c3e6916d (patch)
treece58488d802a5f293a1568ee1896df45d3bf9594 /swext
parent2ccef1c93d4c1a478fbdd8a49caf0735f68ba141 (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
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>