Skip to content

Commit f673a2b

Browse files
committed
Return user-agent by const&
1 parent 8537770 commit f673a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
106106
return size * nmemb;
107107
}
108108

109-
static std::string get_user_agent_header()
109+
static std::string const& get_user_agent_header()
110110
{
111111
static std::string user_agent = std::string("User-Agent: AWS_Lambda_Cpp/") + get_version();
112112
return user_agent;

0 commit comments

Comments
 (0)