From b02a88f0ebda6a9bd0139cce70bb46099b1b7069 Mon Sep 17 00:00:00 2001 From: Guo Huang Date: Wed, 13 Apr 2016 16:26:10 -0700 Subject: [PATCH] fixed httpUserAgent not populating value issue --- .../src/main/resources/go/configuration.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/go/configuration.mustache b/modules/swagger-codegen/src/main/resources/go/configuration.mustache index a9bbd48bd94..700755f883b 100644 --- a/modules/swagger-codegen/src/main/resources/go/configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/go/configuration.mustache @@ -29,7 +29,7 @@ func NewConfiguration() *Configuration { DefaultHeader: make(map[string]string), ApiKey: make(map[string]string), ApiKeyPrefix: make(map[string]string), - UserAgent: "Swagger-Codegen/{{version}}/go", + UserAgent: "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{version}}}/go{{/httpUserAgent}}", } }