diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-28 14:23:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-28 14:23:34 (GMT) |
commit | 8f478b489ae11633d2609dff0ef21d0e1a857417 (patch) | |
tree | 420508dfd1e9634724b8c2ceb56b06bb1b25b16e /Python | |
parent | 6e128382b3e7f83d91d5e73d83a051ff5fb6469c (diff) | |
download | cpython-8f478b489ae11633d2609dff0ef21d0e1a857417.zip cpython-8f478b489ae11633d2609dff0ef21d0e1a857417.tar.gz cpython-8f478b489ae11633d2609dff0ef21d0e1a857417.tar.bz2 |
bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448)
* bpo-38216: Allow bypassing input validation
* bpo-36274: Also allow the URL encoding to be overridden.
* bpo-38216, bpo-36274: Add tests demonstrating a hook for overriding validation, test demonstrating override encoding, and a test to capture expectation of the interface for the URL.
* Call with skip_host to avoid tripping on the host checking in the URL.
* Remove obsolete comment.
* Make _prepare_path_encoding its own attr.
This makes overriding just that simpler.
Also, don't use the := operator to make backporting easier.
* Add a news entry.
* _prepare_path_encoding -> _encode_prepared_path()
* Once again separate the path validation and request encoding, drastically simplifying the behavior. Drop the guarantee that all processing happens in _prepare_path.
(cherry picked from commit 7774d7831e8809795c64ce27f7df52674581d298)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions