diff --git a/css/style.css b/css/style.css index 86e124fe4b..3fb1301c95 100644 --- a/css/style.css +++ b/css/style.css @@ -1210,6 +1210,7 @@ h2 a { .table-scroller { width: 100%; overflow: scroll; + scrollbar-width: thin; } code { @@ -1443,7 +1444,8 @@ h2 a { padding: 0; border: 0; width: 960px; - margin-bottom: 20px;} + margin-bottom: 20px; +} #mw-fig-imgcell { margin: 0; padding: 0px; diff --git a/en/guide/writing-middleware.md b/en/guide/writing-middleware.md index 61df8c660b..c4d070d368 100755 --- a/en/guide/writing-middleware.md +++ b/en/guide/writing-middleware.md @@ -24,6 +24,7 @@ If the current middleware function does not end the request-response cycle, it m The following figure shows the elements of a middleware function call: +
Elements of a middleware function call @@ -42,6 +43,7 @@ The following figure shows the elements of a middleware function call:
HTTP request argument to the middleware function, called "req" by convention.
+
Starting with Express 5, middleware functions that return a Promise will call `next(value)` when they reject or throw an error. `next` will be called with either the rejected value or the thrown Error.