duneanalytics / dune-client

A framework for interacting with Dune Analytics' officially supported API service
Apache License 2.0
85 stars 22 forks source link

Add user agent to default headers #81

Closed bh2smith closed 1 year ago

bh2smith commented 1 year ago

This is an attempt to dynamically fetch the users package version of dune-client and pass along with requests as User-Agent.

We can't test this directly because this package does not depend on itself. Will have to try it out. Anyway, the fallback mechanism uses a hard-coded value (i.e. the next version).

Closes #80