isssue#2579: added "UserAgen" in configuration

This commit is contained in:
Guo Huang 2016-04-13 16:08:14 -07:00
parent 3aeef74dd0
commit 1f085ccd52
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,7 @@ type Configuration struct {
Scheme string `json:"scheme,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
}
func NewConfiguration() *Configuration {
@ -27,7 +28,8 @@ func NewConfiguration() *Configuration {
Debug: false,
DefaultHeader: make(map[string]string),
ApiKey: make(map[string]string),
ApiKeyPrefix: make(map[string]string) ,
ApiKeyPrefix: make(map[string]string),
UserAgent: "Swagger-Codegen/{{version}}/go",
}
}

View File

@ -18,6 +18,7 @@ type Configuration struct {
Scheme string `json:"scheme,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
}
func NewConfiguration() *Configuration {
@ -27,7 +28,8 @@ func NewConfiguration() *Configuration {
Debug: false,
DefaultHeader: make(map[string]string),
ApiKey: make(map[string]string),
ApiKeyPrefix: make(map[string]string) ,
ApiKeyPrefix: make(map[string]string),
UserAgent: "Swagger-Codegen/1.0.0/go",
}
}