Skip to content

Commit 5f6cda0

Browse files
authored
Revert "Set the content type during publish to application/gzip (#1671)" (#1672)
This reverts commit 3e4890f. Does not fix #1666 Tracking internally here http://b/63855519
1 parent 3e4890f commit 5f6cda0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/src/command/lish.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import 'dart:async';
66

77
import 'package:http/http.dart' as http;
8-
import 'package:http_parser/http_parser.dart' as http_parser;
98

109
import '../ascii_tree.dart' as tree;
1110
import '../command.dart';
@@ -88,9 +87,7 @@ class LishCommand extends PubCommand {
8887
request.followRedirects = false;
8988
request.files.add(new http.MultipartFile.fromBytes(
9089
'file', packageBytes,
91-
filename: 'package.tar.gz',
92-
contentType: new http_parser.MediaType('application', 'gzip')));
93-
90+
filename: 'package.tar.gz'));
9491
var postResponse =
9592
await http.Response.fromStream(await client.send(request));
9693

0 commit comments

Comments
 (0)