Skip to content

Commit

Permalink
Fix #85 The method '_ReadOnlyHeaders.add' has fewer named arguments t…
Browse files Browse the repository at this point in the history
…han those of overridden method 'HttpHeadersWrapper.add [Dart 2.8]
  • Loading branch information
jumperchen committed May 7, 2020
1 parent 403c584 commit 2add24d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# CHANGES
### 2.3.0

* Fix [85](https://github.com/rikulo/stream/issues/85) The method '_ReadOnlyHeaders.add' has fewer named arguments than those of overridden method 'HttpHeadersWrapper.add [Dart 2.8]

### 2.2.2+1

Expand Down
6 changes: 4 additions & 2 deletions lib/src/connect_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,13 @@ class _ReadOnlyHeaders extends HttpHeadersWrapper {
_ReadOnlyHeaders(HttpHeaders headers): super(headers);

@override
void add(String name, Object value) {
void add(String name, Object value, {bool preserveHeaderCase = false}) {
}

@override
void set(String name, Object value) {
void set(String name, Object value, {bool preserveHeaderCase = false}) {
}

@override
void remove(String name, Object value) {
}
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: stream
version: 2.2.2+1
version: 2.3.0
description: >
Lightweight Dart web server supporting request routing, filtering,
template engine, MVC design pattern, and file-based static resources.
Expand All @@ -10,7 +10,7 @@ documentation: http://docs.rikulo.org/stream
repository: https://github.com/rikulo/stream
issue_tracker: https://github.com/rikulo/stream/issues
dependencies:
rikulo_commons: '>=3.0.0 <4.1.0'
rikulo_commons: '>=4.1.0 <5.0.0'
logging: ">=0.11.0 <2.0.0"
args: '>=0.13.0 <2.0.0'
path: '>=1.3.0 <2.0.0'
Expand All @@ -21,4 +21,4 @@ executables:
rspc:

environment:
sdk: '>=2.0.0 <2.8.0'
sdk: '>=2.8.0 <3.0.0'

0 comments on commit 2add24d

Please sign in to comment.