Skip to content

Commit f831466

Browse files
committed
bug fix per issue #7
1 parent e17c1d1 commit f831466

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.markdown

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repositories {
3333
}
3434
3535
dependencies {
36-
compile 'com.commonsware.cwac:netsecurity:0.3.0'
36+
compile 'com.commonsware.cwac:netsecurity:0.3.1'
3737
compile 'com.squareup.okhttp3:okhttp:3.5.0'
3838
}
3939
```
@@ -185,7 +185,7 @@ Otherwise, there are no external dependencies.
185185

186186
## Version
187187

188-
The current version is **0.3.0**.
188+
The current version is **0.3.1**.
189189

190190
## Demo
191191

@@ -231,6 +231,7 @@ Do not ask for help via social media.
231231

232232
|Library Version|AOSP Code Base |Release Notes|
233233
|:-------------:|:------------------------------------------------------------------------------------------------------:|-------------|
234+
|v0.3.1 |Android 7.1 source code from the SDK, plus [the `android-7.1.0_r7` tagged edition of `conscrypt`](https://android.googlesource.com/platform/external/conscrypt/+/android-7.1.0_r7)|bug fix per [issue #7](https://github.com/commonsguy/cwac-netsecurity/issues/7)|
234235
|v0.3.0 |Android 7.1 source code from the SDK, plus [the `android-7.1.0_r7` tagged edition of `conscrypt`](https://android.googlesource.com/platform/external/conscrypt/+/android-7.1.0_r7)|`user` validation per [issue #5](https://github.com/commonsguy/cwac-netsecurity/issues/5)|
235236
|v0.2.1 |Android 7.1 source code from the SDK, plus [the `android-7.1.0_r7` tagged edition of `conscrypt`](https://android.googlesource.com/platform/external/conscrypt/+/android-7.1.0_r7)|bug fix per [issue #3](https://github.com/commonsguy/cwac-netsecurity/issues/3)|
236237
|v0.2.0 |Android 7.0 source code from the SDK, plus [the `android-7.0.0_r1` tagged edition of `conscrypt`](https://android.googlesource.com/platform/external/conscrypt/+/android-7.0.0_r1)|`HttpURLConnection` no longer requires `setHost()` call|

demo/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.2'
1313
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
1414
debugCompile project(':netsecurity')
15-
releaseCompile 'com.commonsware.cwac:netsecurity:0.3.0'
15+
releaseCompile 'com.commonsware.cwac:netsecurity:0.3.1'
1616
compile 'com.squareup.okhttp3:okhttp:3.5.0'
1717
}
1818

netsecurity/src/main/java/com/commonsware/cwac/netsecurity/conscrypt/CertPinManager.java

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ public static String slurp(final InputStream is)
137137
out.append(buffer, 0, rsz);
138138
}
139139

140+
is.close();
141+
140142
return out.toString();
141143
}
142144

0 commit comments

Comments
 (0)