Skip to content

Commit d08ba20

Browse files
authored
feat(asm/pylons): add HTTP query support to pylons framework (#4019)
## Description Add HTTP query to set_http_meta in Pylons framework ## Checklist - [x] Title must conform to [conventional commit](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional). - [x] Add additional sections for `feat` and `fix` pull requests. - [x] Ensure tests are passing for affected code. ## Reviewer Checklist - [ ] Title is accurate. - [ ] Description motivates each change. - [ ] No unnecessary changes were introduced in this PR. - [ ] PR cannot be broken up into smaller PRs. - [ ] Avoid breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes unless absolutely necessary. - [ ] Tests provided or description of manual testing performed is included in the code or PR. - [ ] Release note has been added for fixes and features, or else `changelog/no-changelog` label added. - [ ] All relevant GitHub issues are correctly linked. - [ ] Backports are identified and tagged with Mergifyio. - [ ] Add to milestone.
1 parent 2340f5d commit d08ba20

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ddtrace/contrib/pylons/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def _start_response(status, *args, **kwargs):
145145
url=url,
146146
raw_uri=raw_uri,
147147
query=query_string,
148+
parsed_query=dict(request.GET),
148149
request_path_params=self._parse_path_params(path_params),
149150
)
150151
if controller:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- |
4+
ASM: Detect attacks on Pylons HTTP query.

0 commit comments

Comments
 (0)