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.
ProxyServerAssetReader
1 parent 5769956 commit c0300ceCopy full SHA for c0300ce
dwds/lib/src/readers/proxy_server_asset_reader.dart
@@ -49,8 +49,9 @@ class ProxyServerAssetReader implements AssetReader {
49
Future<String?> _readResource(String path) async {
50
// Handlers expect a fully formed HTML URI. The actual hostname and port
51
// does not matter.
52
- final response =
53
- await _handler(Request('GET', Uri.parse('http://foo:0000/$path')));
+ final request = Request('GET', Uri.parse('http://foo:0000/$path'))
+ .change(headers: {'requested-by': 'DWDS'});
54
+ final response = await _handler(request);
55
56
if (response.statusCode != HttpStatus.ok) {
57
_logger.warning('''
0 commit comments