Skip to content

Commit

Permalink
Fixed a typo in Web Server Quickstart (#3418)
Browse files Browse the repository at this point in the history
* Fixed a typo in Web Server Quickstart

Missing parenthesis in `add_routes` example

* Add Sebastian Acuna to the contributors list
  • Loading branch information
sebaacuna authored and webknjaz committed Dec 1, 2018
1 parent a0764c5 commit eb951c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ Robert Lu
Roman Podoliaka
Samuel Colvin
Sean Hunt
Sebastian Acuna
Sebastian Hanula
Sebastian Hüther
Sebastien Geffroy
Expand Down
2 changes: 1 addition & 1 deletion docs/web_quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eb951c8

Please sign in to comment.