Skip to content

Commit e81e600

Browse files
grdsdevclaude
andcommitted
fix(storage): revert to http_parser import for MediaType
MediaType is only exported by package:http_parser/http_parser.dart, not by package:http/http.dart. The analyzer warning about unnecessary_import is a false positive in this case. This reverts the previous changes that attempted to import MediaType from the http package, which caused compilation errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5229d2b commit e81e600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/storage_client/lib/src/fetch.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import 'dart:convert';
33
import 'dart:typed_data';
44

55
import 'package:http/http.dart' as http;
6-
import 'package:http/http.dart'
7-
show Client, ClientException, MediaType, MultipartFile;
6+
import 'package:http/http.dart';
7+
import 'package:http_parser/http_parser.dart' show MediaType;
88
import 'package:logging/logging.dart';
99
import 'package:mime/mime.dart';
1010
import 'package:retry/retry.dart';

0 commit comments

Comments
 (0)