Skip to content

Commit

Permalink
feat(perl): Update agent to use version constant (#17665)
Browse files Browse the repository at this point in the history
close #14297
  • Loading branch information
bmodotdev committed Jan 20, 2024
1 parent 3dcef82 commit 189bf7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sub new {
# class/static variables
$p{http_timeout} //= 180;
$p{http_user_agent} //= '{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{{moduleVersion}}}/perl{{/httpUserAgent}}';
$p{http_user_agent} //= '{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/' . VERSION . '/perl{{/httpUserAgent}}';

# authentication setting
$p{api_key} //= {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sub new {

# class/static variables
$p{http_timeout} //= 180;
$p{http_user_agent} //= 'OpenAPI-Generator/1.0.0/perl';
$p{http_user_agent} //= 'OpenAPI-Generator/' . VERSION . '/perl';

# authentication setting
$p{api_key} //= {};
Expand Down

0 comments on commit 189bf7d

Please sign in to comment.