We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b712a5e commit 3e4890fCopy full SHA for 3e4890f
lib/src/command/lish.dart
@@ -5,6 +5,7 @@
5
import 'dart:async';
6
7
import 'package:http/http.dart' as http;
8
+import 'package:http_parser/http_parser.dart' as http_parser;
9
10
import '../ascii_tree.dart' as tree;
11
import '../command.dart';
@@ -87,7 +88,9 @@ class LishCommand extends PubCommand {
87
88
request.followRedirects = false;
89
request.files.add(new http.MultipartFile.fromBytes(
90
'file', packageBytes,
- filename: 'package.tar.gz'));
91
+ filename: 'package.tar.gz',
92
+ contentType: new http_parser.MediaType('application', 'gzip')));
93
+
94
var postResponse =
95
await http.Response.fromStream(await client.send(request));
96
0 commit comments