~jameinel/goose/break-juju

Viewing all changes in revision 67.

  • Committer: Tarmac
  • Author(s): John Arbash Meinel
  • Date: 2013-02-07 05:29:13 UTC
  • mfrom: (65.2.5 user-agent)
  • Revision ID: tarmac-20130207052913-e5vfzm0pg3786t9i
[r=jameinel] http/client.go,version.go: Add User-agent: goose header

This changes the User-Agent supplied by goose from being a generic "Go http package" to stating it is goose and what version.

Along with that change, it adds a goose.Version to the package, and goose.VersionNumber.

I didn't try to do the complex work that juju-core/version/Version does. I didn't need a lot of version number parsing, so it made more sense to enter the version as integers, and have it build the string trivially.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: