Skip to content

Add User-Agent information #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2018
Merged

Add User-Agent information #11

merged 2 commits into from
Dec 11, 2018

Conversation

marcomagdy
Copy link
Contributor

Send a user-agent http header when talking to Lambda's http server.
This is important for collecting usage metrics.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

src/runtime.cpp Outdated
@@ -105,6 +106,12 @@ static size_t write_header(char* ptr, size_t size, size_t nmemb, void* userdata)
return size * nmemb;
}

static std::string get_user_agent_header()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably return this by const reference, since it's a static?

Send a user-agent http header when talking to Lambda's http server.
This is important for collecting usage metrics.
Copy link

@petermd petermd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcomagdy marcomagdy merged commit 3461d6a into master Dec 11, 2018
@marcomagdy marcomagdy deleted the useragent branch December 11, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants