Skip to content

Commit

Permalink
Correct spelling mistakes (#311)
Browse files Browse the repository at this point in the history
* Correct spelling mistakes

* Update docs/configuration.rst

Co-authored-by: Rafał <[email protected]>
  • Loading branch information
EdwardBetts and rafrafek authored Nov 25, 2022
1 parent 5c2a162 commit cad70b3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Updated logging.warn to logging.warning (#234) Thanks Vaibhav
Manual error in release process. Identical contents at 3.0.5.

## 3.0.5
Fixes incorrect handling of regexes containg `[`, and a few other special characters. Fixes Issue [#212](https://github.com/corydolphin/flask-cors/issues/212)
Fixes incorrect handling of regexes containing `[`, and a few other special characters. Fixes Issue [#212](https://github.com/corydolphin/flask-cors/issues/212)

## 3.0.4
Handle response.headers being None. (Fixes issue #217)
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/app_based_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_exception():
@app.errorhandler(500)
def server_error(e):
logging.exception('An error occurred during a request. %s', e)
return "An internal error occured", 500
return "An internal error occurred", 500


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion flask_cors/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_cors_headers(options, request_headers, request_method):
headers[ACL_EXPOSE_HEADERS] = options.get('expose_headers')

if options.get('supports_credentials'):
headers[ACL_CREDENTIALS] = 'true' # case sensative
headers[ACL_CREDENTIALS] = 'true' # case sensitive

# This is a preflight request
# http://www.w3.org/TR/cors/#resource-preflight-requests
Expand Down
2 changes: 1 addition & 1 deletion flask_cors/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def cross_origin(*args, **kwargs):
`Access-Control-Allow-Credentials` header in responses. This allows
cookies and credentials to be submitted across domains.
:note: This option cannot be used in conjuction with a '*' origin
:note: This option cannot be used in conjunction with a '*' origin
Default : False
:type supports_credentials: bool
Expand Down
4 changes: 2 additions & 2 deletions tests/decorator/test_exception_interception.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions tests/extension/test_app_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def test_exact_match(self):
class AppExtensionCompiledRegexp(FlaskCorsTestCase):
def test_compiled_regex(self):
'''
Ensure we do not error if the user sepcifies an bad regular
Ensure we do not error if the user specifies an bad regular
expression.
'''
import re
Expand All @@ -363,7 +363,7 @@ def example():
class AppExtensionBadRegexp(FlaskCorsTestCase):
def test_value_error(self):
'''
Ensure we do not error if the user sepcifies an bad regular
Ensure we do not error if the user specifies an bad regular
expression.
'''

Expand Down

0 comments on commit cad70b3

Please sign in to comment.