Skip to content

Commit b59daa8

Browse files
committed
fixup empty url parameter bug
1 parent 14bd5b8 commit b59daa8

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

AndroidAsync-Kotlin/build.gradle

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'kotlin-android-extensions'
32
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
buildscript {
6+
ext.kotlin_version = '1.3.50'
7+
repositories {
8+
mavenCentral()
9+
}
10+
dependencies {
11+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12+
}
13+
}
414

515
android {
616
compileSdkVersion 29
@@ -39,9 +49,9 @@ dependencies {
3949
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4050

4151
testImplementation 'junit:junit:4.12'
42-
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.0.6'
43-
androidTestImplementation 'androidx.test:runner:1.1.1'
44-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
52+
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.3.50'
53+
androidTestImplementation 'androidx.test:runner:1.2.0'
54+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
4555
}
4656

4757
// upload to maven task

AndroidAsync/src/com/koushikdutta/async/http/Multimap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public static Multimap parse(String value, String delimiter, String assigner, bo
9797
String v = null;
9898
if (pair.length > 1)
9999
v = pair[1];
100-
if (unquote && v != null && v.endsWith("\"") && v.startsWith("\""))
100+
if (v != null && unquote && v.endsWith("\"") && v.startsWith("\""))
101101
v = v.substring(1, v.length() - 1);
102-
if (decoder != null) {
102+
if (v != null && decoder != null) {
103103
key = decoder.decode(key);
104104
v = decoder.decode(v);
105105
}

0 commit comments

Comments
 (0)