-
Notifications
You must be signed in to change notification settings - Fork 160
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
Support json/xml request bodies #2499
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2499 +/- ##
============================================
+ Coverage 76.53% 76.54% +0.01%
Complexity 267 267
============================================
Files 136 136
Lines 17526 17573 +47
Branches 1020 1034 +14
============================================
+ Hits 13413 13451 +38
- Misses 3580 3585 +5
- Partials 533 537 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
9712894
to
4a4d2af
Compare
3a8a9de
to
b4283de
Compare
4a4d2af
to
20c5f0a
Compare
Also fix the handling of content-type/length in requests for the purposes of sending these headers to the helper and for setting the respective tags. These are available in $_SERVER['CONTENT_...'], not $_SERVER['HTTP_CONTENT_...']
20c5f0a
to
498fae5
Compare
@@ -657,6 +665,19 @@ static void _dd_http_client_ip(zend_array *meta_ht) | |||
} | |||
} | |||
|
|||
static void _try_add_tag(zend_array *meta_ht, zend_string *tag_name, zval *val) | |||
{ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
@@ -34,6 +34,8 @@ | |||
#define DD_TAG_HTTP_URL "http.url" | |||
#define DD_TAG_NETWORK_CLIENT_IP "network.client.ip" | |||
#define DD_PREFIX_TAG_REQUEST_HEADER "http.request.headers." | |||
#define DD_TAG_HTTP_REQH_CONTENT_TYPE "http.request.headers.content-type" | |||
#define DD_TAG_HTTP_REQH_CONTENT_LENGTH "http.request.headers.content-length" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the naming of the request / response macros and interned strings could be a bit more consistent.
Naming stuff will be improved later. |
Also fix the handling of content-type/length in requests for the purposes of sending these headers to the helper and for setting the respective tags. These are available in
$_SERVER['CONTENT_...']
, not$_SERVER['HTTP_CONTENT_...']
APPSEC-51412
Description
Reviewer checklist