Include telemetry headers when sending any request to the pub site (#2389)
diff --git a/lib/src/http.dart b/lib/src/http.dart
index 0a18eb1..220bd6c 100644
--- a/lib/src/http.dart
+++ b/lib/src/http.dart
@@ -80,14 +80,7 @@
if (request.url.origin != 'https://pub.dartlang.org') return false;
}
- return const [
- 'cache add',
- 'cache repair',
- 'downgrade',
- 'get',
- 'global activate',
- 'upgrade',
- ].contains(PubCommandRunner.command);
+ return true;
}
/// Logs the fact that [request] was sent, and information about it.