stdevel / katprep

Python toolkit for automating system maintenance and generating patch reports along with Foreman/Katello and Red Hat Satellite 6.x
GNU General Public License v3.0
35 stars 6 forks source link

Provide well-formed User-Agent HTTP header #141

Open okin opened 3 years ago

okin commented 3 years ago

Is your feature request related to a problem? Please describe. It would be nice to see what version of katprep made a request because this can help debugging problems with specific versions.

Describe the solution you'd like I'd like the User-Agent HTTP header to include the version. In order to have a useful comment I suggest to including the version of requests (from requests.__version__).

Desired format: katprep/1.2.3 (requests 4.5.6, )

Additional context RFC 2616 describes the User-Agent header and the desired format.