/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 __init__.py

Adjust header for GitHub.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
                      headers=headers)
171
171
        if req.get_host() == "github.com":
172
172
            # GitHub requires we lie. https://github.com/dulwich/dulwich/issues/562
173
 
            headers["User-agent"] = "git/Breezy/%s" % breezy_version
 
173
            req.add_header("User-Agent", "git/Breezy/%s" % breezy_version)
174
174
        elif req.get_host() == "bazaar.launchpad.net":
175
175
            # Don't attempt Git probes against bazaar.launchpad.net; pad.lv/1744830
176
176
            raise bzr_errors.NotBranchError(transport.base)