update rust default user agent to promote swagger codegen

This commit is contained in:
wing328
2018-01-14 18:25:04 +08:00
parent 66be7a7910
commit 44853c31b6
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ impl<C: hyper::client::Connect> Configuration<C> {
pub fn new(client: hyper::client::Client<C>) -> Configuration<C> {
Configuration {
base_path: "{{{basePath}}}".to_owned(),
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}None{{/httpUserAgent}},
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}Some("Swagger-Codegen/{{version}}/rust".to_owned()){{/httpUserAgent}},
client: client,
}
}

View File

@@ -1 +1 @@
2.3.1-SNAPSHOT
2.4.0-SNAPSHOT

View File

@@ -20,7 +20,7 @@ impl<C: hyper::client::Connect> Configuration<C> {
pub fn new(client: hyper::client::Client<C>) -> Configuration<C> {
Configuration {
base_path: "http://petstore.swagger.io/v2".to_owned(),
user_agent: None,
user_agent: Some("Swagger-Codegen/1.0.0/rust".to_owned()),
client: client,
}
}