| Index: pkg/shelf/lib/shelf_io.dart
|
| diff --git a/pkg/shelf/lib/shelf_io.dart b/pkg/shelf/lib/shelf_io.dart
|
| index 6582e5a0688658b38c628629981dfb47bb9ae35d..c6853025bd94d39b665d319bef3a6dbc20474c82 100644
|
| --- a/pkg/shelf/lib/shelf_io.dart
|
| +++ b/pkg/shelf/lib/shelf_io.dart
|
| @@ -117,9 +117,8 @@ Future _writeResponse(Response response, HttpResponse httpResponse) {
|
| httpResponse.headers.set(header, value);
|
| });
|
|
|
| - if (response.headers[HttpHeaders.SERVER] == null) {
|
| - var value = httpResponse.headers.value(HttpHeaders.SERVER);
|
| - httpResponse.headers.set(HttpHeaders.SERVER, '$value with Shelf');
|
| + if (!response.headers.containsKey(HttpHeaders.SERVER)) {
|
| + httpResponse.headers.set(HttpHeaders.SERVER, 'dart:io with Shelf');
|
| }
|
|
|
| if (!response.headers.containsKey(HttpHeaders.DATE)) {
|
|
|