From fddbd967a01abb0380223082da297677cf82c79d Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 11 Sep 2022 07:46:16 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - docs/configuration.rst - tests/decorator/test_exception_interception.py Fixes: - Should read `enabled` rather than `enbaled`. - Should read `matching` rather than `maching`. Signed-off-by: Tim Gates --- docs/configuration.rst | 2 +- tests/decorator/test_exception_interception.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index f2ba84a..472d45f 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -21,7 +21,7 @@ The configuration options recognised by Flask-CORS are: CORS_ALLOW_HEADERS (:py:class:`~typing.List` or :py:class:`str`) Headers to accept from the client. - Headers in the :http:header:`Access-Control-Request-Headers` request header (usually part of the preflight OPTIONS request) maching headers in this list will be included in the :http:header:`Access-Control-Allow-Headers` response header. + Headers in the :http:header:`Access-Control-Request-Headers` request header (usually part of the preflight OPTIONS request) matching headers in this list will be included in the :http:header:`Access-Control-Allow-Headers` response header. CORS_ALWAYS_SEND (:py:class:`bool`) Usually, if a request doesn't include an :http:header:`Origin` header, the client did not request CORS. diff --git a/tests/decorator/test_exception_interception.py b/tests/decorator/test_exception_interception.py index fe42d3d..d8c5e72 100644 --- a/tests/decorator/test_exception_interception.py +++ b/tests/decorator/test_exception_interception.py @@ -117,7 +117,7 @@ def test_acl_exception_with_error_handler(self): ''' If a 500 handler is setup by the user, responses should have CORS matching rules applied, regardless of whether or not - intercept_exceptions is enbaled. + intercept_exceptions is enabled. ''' return_string = "Simple error handler" @@ -168,7 +168,7 @@ def test_acl_exception_with_error_handler(self): ''' If a 500 handler is setup by the user, responses should have CORS matching rules applied, regardless of whether or not - intercept_exceptions is enbaled. + intercept_exceptions is enabled. ''' return_string = "Simple error handler"