HF RL Explorer

Implement a function sanitize headers(md, prefix) that removes HTTP headers from a bottle.MultiDict that…

Implement a function sanitize headers(md, prefix) that removes HTTP headers from a bottle.MultiDict that…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Example: python md = MultiDict( ('X-Debug', '1'), ('X-User', '2'), ('Y-General', '3') ) sanitize headers(md, 'x-') md now contains only…

The task

Example: ```python md = MultiDict([('X-Debug', '1'), ('X-User', '2'), ('Y-General', '3')]) sanitize_headers(md, 'x-') # md now contains only Y-General assert md.get('X-Debug') is None ```

Part of Essacheez/r2e-code-instruct-qwen3.5.