From 9b4125c1ab9c732321c359c9c0a884bd1dd17812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogi=20Napoleon=20Wennerstr=C3=B8m?= Date: Fri, 25 Sep 2020 22:27:39 +0200 Subject: [PATCH 1/2] Changed header pattern --- lib/build.gradle | 4 ++-- lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/build.gradle b/lib/build.gradle index be24a6c..f2003fd 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -29,7 +29,7 @@ android { defaultConfig { minSdkVersion 16 - targetSdkVersion 25 + targetSdkVersion 26 versionCode 1 versionName "1.0" } @@ -73,4 +73,4 @@ task sourcesJar(type: Jar) { artifacts { archives sourcesJar -} \ No newline at end of file +} diff --git a/lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java b/lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java index 60ccb91..e2bc2a4 100644 --- a/lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java +++ b/lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java @@ -17,7 +17,7 @@ public class StompMessage { public static final String TERMINATE_MESSAGE_SYMBOL = "\u0000"; - private static final Pattern PATTERN_HEADER = Pattern.compile("([^:\\s]+)\\s*:\\s*([^:\\s]+)"); + private static final Pattern PATTERN_HEADER = Pattern.compile("([^:\\s]+)\\s*:\\s*([^\\n]+)"); private final String mStompCommand; private final List mStompHeaders; From 2bdb7d61323161907181ff139d6f4391d4e6fffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogi=20Napoleon=20Wennerstr=C3=B8m?= Date: Fri, 16 Oct 2020 17:07:32 +0200 Subject: [PATCH 2/2] reverted build.gradle changes --- lib/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.gradle b/lib/build.gradle index f2003fd..be24a6c 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -29,7 +29,7 @@ android { defaultConfig { minSdkVersion 16 - targetSdkVersion 26 + targetSdkVersion 25 versionCode 1 versionName "1.0" } @@ -73,4 +73,4 @@ task sourcesJar(type: Jar) { artifacts { archives sourcesJar -} +} \ No newline at end of file