/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/remote.py

  • Committer: Jelmer Vernooij
  • Date: 2019-07-07 17:22:07 UTC
  • mfrom: (7363 work)
  • mto: This revision was merged to the branch mainline in revision 7378.
  • Revision ID: jelmer@jelmer.uk-20190707172207-nnugeuwvxsxo62wa
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
from . import (
61
61
    lazy_check_versions,
 
62
    is_github_url,
62
63
    user_agent_for_github,
63
64
    )
64
65
lazy_check_versions()
689
690
            `redirect_location` properties, and `read` is a consumable read
690
691
            method for the response data.
691
692
        """
692
 
        headers['User-agent'] = user_agent_for_github()
 
693
        if is_github_url(url):
 
694
            headers['User-agent'] = user_agent_for_github()
693
695
        headers["Pragma"] = "no-cache"
694
696
        if allow_compression:
695
697
            headers["Accept-Encoding"] = "gzip"