diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 12:04:19 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 12:04:19 +0200 |
commit | f9278976789952fc9528f47b6d99a37d79532f68 (patch) | |
tree | 49ff53a4c949fde47af4bdd5c01137820062e36d | |
parent | bbefc4a50e6fd189032dc4a1298ada24e7cc5595 (diff) | |
download | pdf-over-f9278976789952fc9528f47b6d99a37d79532f68.tar.gz pdf-over-f9278976789952fc9528f47b6d99a37d79532f68.tar.bz2 pdf-over-f9278976789952fc9528f47b6d99a37d79532f68.zip |
redundancy
-rw-r--r-- | pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java | 3 | ||||
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/BKUHelper.java | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java index 8e8188fa..4f9ce8cd 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java @@ -114,9 +114,6 @@ public class Constants { /** How far to displace the signature with the arrow keys */ public static final int SIGNATURE_KEYBOARD_POSITIONING_OFFSET = 15; - /** PDF-Over User Agent string */ - public static final String USER_AGENT_STRING = "PDF-Over " + APP_VERSION; - /** Current release file */ public static final String CURRENT_RELEASE_URL = "https://updates.a-sit.at/pdf-over/Release.txt"; diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/BKUHelper.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/BKUHelper.java index 6eb071c5..382a3d24 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/BKUHelper.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/BKUHelper.java @@ -38,7 +38,7 @@ public class BKUHelper { /* public static HttpClient getHttpClient(boolean useProxy) { HttpClient client = new HttpClient(); client.getParams().setParameter("http.useragent", - Constants.USER_AGENT_STRING); + Constants.APP_NAME_VERSION); if (useProxy) { String host = System.getProperty("http.proxyHost"); @@ -70,7 +70,7 @@ public class BKUHelper { public static HttpClient getHttpClient(boolean useProxy) { HttpClient client = new HttpClient(); client.getParams().setParameter("http.useragent", - Constants.USER_AGENT_STRING); + Constants.APP_NAME_VERSION); client.getParams().setParameter("http.protocol.cookie-policy", CookieSpecs.BROWSER_COMPATIBILITY); |