Skip to content

Commit 10b360c

Browse files
authored
Merge pull request #3655 from scop/perl-user-agent
perl: Sync default user agent with other languages
2 parents 4337f05 + 9c92bcb commit 10b360c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/swagger-codegen/src/main/resources/perl/Configuration.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use constant VERSION => '{{moduleVersion}}';
1717

1818
# class/static variables
1919
our $http_timeout = 180;
20-
our $http_user_agent = 'Perl-Swagger';
20+
our $http_user_agent = '{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{moduleVersion}}}/perl{{/httpUserAgent}}';
2121

2222
# authentication setting
2323
our $api_key = {};

samples/client/petstore/perl/lib/WWW/SwaggerClient/Configuration.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use constant VERSION => '1.0.0';
4242

4343
# class/static variables
4444
our $http_timeout = 180;
45-
our $http_user_agent = 'Perl-Swagger';
45+
our $http_user_agent = 'Swagger-Codegen/1.0.0/perl';
4646

4747
# authentication setting
4848
our $api_key = {};

0 commit comments

Comments
 (0)