Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit e48d4b0

Browse files
authored
Version 0.9.6Fix optional parameter to SecurityContext setter (#32)
* Fix optional parameter to SecurityContext setter The API of security context changed, and "file" is no longer an optional parameter to .setTrustedCertificates, but mandatory. * Update pubspec.yaml * Update CHANGELOG.md * Update pubspec.yaml Version 0.9.6
1 parent 3ed8c55 commit e48d4b0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.9.6
2+
3+
* Updated the secure networking code to the SDKs version 1.15 SecurityContext api
4+
15
# 0.9.5+1
26

37
* Updated the layout of package contents.

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: http_server
2-
version: 0.9.6-dev
2+
version: 0.9.6
33
author: Dart Team <[email protected]>
44
description: Library of HTTP server classes.
55
homepage: https://www.github.com/dart-lang/http_server
66
environment:
7-
sdk: '>=1.0.0 <2.0.0'
7+
sdk: '>=1.15.0 <2.0.0'
88
dependencies:
99
mime: '>=0.9.0 <0.10.0'
1010
path: '>=0.9.0 <2.0.0'

test/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,5 @@ void setupSecure() {
310310
password: 'dartdart');
311311

312312
clientContext = new SecurityContext()
313-
..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
313+
..setTrustedCertificates(localFile('certificates/trusted_certs.pem'));
314314
}

0 commit comments

Comments
 (0)