From eb951c8f6a6e1dfc9e39b8b6f674866e6694ee0c Mon Sep 17 00:00:00 2001 From: Sebastian Acuna Date: Sat, 1 Dec 2018 12:43:31 -0300 Subject: [PATCH] Fixed a typo in Web Server Quickstart (#3418) * Fixed a typo in Web Server Quickstart Missing parenthesis in `add_routes` example * Add Sebastian Acuna to the contributors list --- CONTRIBUTORS.txt | 1 + docs/web_quickstart.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 2a1c6de2d6b..538b0d0f834 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -183,6 +183,7 @@ Robert Lu Roman Podoliaka Samuel Colvin Sean Hunt +Sebastian Acuna Sebastian Hanula Sebastian Hüther Sebastien Geffroy diff --git a/docs/web_quickstart.rst b/docs/web_quickstart.rst index 8459d8867dc..0026ebbc293 100644 --- a/docs/web_quickstart.rst +++ b/docs/web_quickstart.rst @@ -129,7 +129,7 @@ Wildcard *HTTP method* is also supported by :func:`route` or :meth:`RouteTableDef.route`, allowing a handler to serve incoming requests on a *path* having **any** *HTTP method*:: - app.add_routes[web.route('*', '/path', all_handler)] + app.add_routes([web.route('*', '/path', all_handler)]) The *HTTP method* can be queried later in the request handler using the :attr:`Request.method` property.