-
-
Notifications
You must be signed in to change notification settings - Fork 209
Allow setting sdk_name at runtime #834
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
Changes from all commits
509ae8a
e0acb2d
4a8863f
83cd946
40f54aa
2a1cffc
8c3a5be
b75d2f9
616311b
8b0e317
97b6bfc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,7 +150,8 @@ sentry_transport_free(sentry_transport_t *transport) | |
|
|
||
| sentry_prepared_http_request_t * | ||
| sentry__prepare_http_request(sentry_envelope_t *envelope, | ||
| const sentry_dsn_t *dsn, const sentry_rate_limiter_t *rl) | ||
| const sentry_dsn_t *dsn, const sentry_rate_limiter_t *rl, | ||
| const char *user_agent) | ||
| { | ||
| if (!dsn || !dsn->is_valid) { | ||
| return NULL; | ||
|
|
@@ -189,7 +190,7 @@ sentry__prepare_http_request(sentry_envelope_t *envelope, | |
| sentry_prepared_http_header_t *h; | ||
| h = &req->headers[req->headers_len++]; | ||
| h->key = "x-sentry-auth"; | ||
| h->value = sentry__dsn_get_auth_header(dsn); | ||
| h->value = sentry__dsn_get_auth_header(dsn, user_agent); | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as with options in the scope-private
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fact that no unit-test screams at this is also problematic. Can you please add assertions for "user-agent" in the unit tests that "cover" |
||
| h = &req->headers[req->headers_len++]; | ||
| h->key = "content-type"; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.