Commit 0609b8d
committed
Fix false warning on DELETE endpoints: "Can't set request-id because headers not set"
The check `if not header_param:` incorrectly treats an empty dict {} as
falsy, skipping X-Request-Id injection for every endpoint whose OpenAPI
spec has empty accept and content_type headers. This affects all DELETE
endpoints (delete_detector, delete_priming_group, delete_rule,
reset_detector) and edge_report_metrics_create.
The fix changes the guard to `if header_param is None:` so that an empty
dict correctly falls through to the elif branch and gets the request-id
header set.1 parent b35cca7 commit 0609b8d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments