Skip to content

Commit 8787994

Browse files
committed
Added OS in User-Agent
1 parent 5768e22 commit 8787994

File tree

1 file changed

+1
-1
lines changed
  • lib/Search/Elasticsearch/Role

1 file changed

+1
-1
lines changed

lib/Search/Elasticsearch/Role/Cxn.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sub stringify { shift->uri . '' }
6161
#===================================
6262
sub get_user_agent {
6363
#===================================
64-
return sprintf("elasticsearch-perl/%s- (PERL %s)", $Search::Elasticsearch::VERSION, $]);
64+
return sprintf("elasticsearch-perl/%s (%s; perl %s)", $Search::Elasticsearch::VERSION, $^O, $]);
6565
}
6666

6767
#===================================

0 commit comments

Comments
 (0)