sanic/sanic
Damian Jimenez cf9ccdae47
Bug fix for host parameter issue with lists (#1776)
* Bug fix for host parameter issue with lists

As explained in #1772 there is an issue when using a list as an argument for the host parameter in the Blueprint.route() decorator. I've traced the issue back to this line, and the if conditional should ensure that the name attribute isn't accessed when route is None.

* Unit tests for blueprint.route host paramter set to list.

Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2020-06-28 09:42:18 +03:00
..
__init__.py fix: #1631: linter fix and tox platform selector 2019-07-13 21:48:26 +05:30
__main__.py Add sanic as an entry point command (#1866) 2020-06-05 07:14:18 -07:00
__version__.py release 20.3.0 (#1844) 2020-05-12 16:58:42 -07:00
app.py Add version parameter to websocket routes (#1760) 2020-06-28 09:17:18 +03:00
asgi.py Swap out requests-async for httpx (#1728) 2019-12-20 19:23:52 -08:00
blueprint_group.py Add a type checking pipeline (#1682) 2019-09-22 13:55:36 -07:00
blueprints.py Bug fix for host parameter issue with lists (#1776) 2020-06-28 09:42:18 +03:00
compat.py Fix Ctrl+C and tests on Windows. (#1808) 2020-03-25 21:42:46 -07:00
config.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
constants.py run black against sanic module 2018-10-13 17:55:33 -07:00
cookies.py HTTP1 header formatting moved to headers.format_headers and rewritten. (#1669) 2019-12-23 17:30:45 -06:00
errorpages.py No tracebacks on normal errors and prettier error pages (#1768) 2020-01-20 08:58:14 -06:00
exceptions.py Do not set content-type and content-length headers in exceptions. (#1820) 2020-04-25 20:18:59 -07:00
handlers.py No tracebacks on normal errors and prettier error pages (#1768) 2020-01-20 08:58:14 -06:00
headers.py More robust response datatype handling (#1674) 2020-01-20 10:34:32 -06:00
helpers.py Update helpers.py (#1693) 2019-10-08 16:29:03 -07:00
log.py fix the logger and make it work (#1397) 2018-11-06 08:39:38 -06:00
reloader_helpers.py Fix reloader on OSX py38 and Windows (#1827) 2020-06-03 16:45:07 +03:00
request.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
response.py Deprecate body_bytes to merge into body (#1739) 2020-06-28 08:59:23 +03:00
router.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
server.py Remove server config args that can be read directly from app. (#1807) 2020-04-08 22:10:58 -07:00
static.py Fix static _handler pickling error. 2020-05-07 11:58:36 +10:00
testing.py Import ASGIDispatch from top-level httpx (#1806) 2020-04-10 12:03:51 -07:00
views.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
websocket.py fix-#1856: adjust websockets version to setup.py and make nightly (py39) tests pass (#1857) 2020-06-28 08:43:12 +03:00
worker.py Add a type checking pipeline (#1682) 2019-09-22 13:55:36 -07:00