pbhalesain / python-rest-client

Automatically exported from code.google.com/p/python-rest-client
0 stars 0 forks source link

User-Agent header is hardcoded #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It should be possible to override the User-Agent header.

Something along the following should do it

    if not headers.get('User-Agent', None):
        headers['User-Agent'] = 'Basic Agent'

Original issue reported on code.google.com by eero.afh...@gmail.com on 11 Oct 2009 at 8:05