Adds a user-agent to reposman (#6735).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4288 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d642964035
commit
d9f2bccf70
|
@ -180,7 +180,9 @@ rescue LoadError
|
||||||
log("This script requires activeresource.\nRun 'gem install activeresource' to install it.", :exit => true)
|
log("This script requires activeresource.\nRun 'gem install activeresource' to install it.", :exit => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
class Project < ActiveResource::Base; end
|
class Project < ActiveResource::Base
|
||||||
|
self.headers["User-agent"] = "Redmine repository manager/#{Version}"
|
||||||
|
end
|
||||||
|
|
||||||
log("querying Redmine for projects...", :level => 1);
|
log("querying Redmine for projects...", :level => 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue