/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-07-06 16:21:16 UTC
  • mfrom: (7359.1.5 propose-fixes)
  • Revision ID: breezy.the.bot@gmail.com-20190706162116-gypul33l15pj5rxb
Misc fixes for interacting with GitLab repositories.

Merged from https://code.launchpad.net/~jelmer/brz/propose-fixes/+merge/369487

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"