Skip to content

docs: Fix a few typos #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ uploading assets to S3.
**Default:** `'host'`
`FLASKS3_USE_HTTPS` Specifies whether or not to serve your assets
stored in S3 over HTTPS.
Can be overriden per url, by using the `_scheme`
Can be overridden per url, by using the `_scheme`
argument as per usual Flask `url_for`.
**Default:** `True`
`FLASKS3_ACTIVE` This setting allows you to toggle whether Flask-S3
Expand Down
4 changes: 2 additions & 2 deletions flask_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_statics_prefix(app):

def split_metadata_params(headers):
"""
Given a dict of headers for s3, seperates those that are boto3
Given a dict of headers for s3, separates those that are boto3
parameters and those that must be metadata
"""

Expand Down Expand Up @@ -205,7 +205,7 @@ def _gather_files(app, hidden, filepath_filter_regex=None):


def _path_to_relative_url(path):
""" Converts a folder and filename into a ralative url path """
""" Converts a folder and filename into a relative url path """
return os.path.splitdrive(path)[1].replace('\\', '/')


Expand Down
2 changes: 1 addition & 1 deletion test_flask_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_url_for_per_url_scheme(self):
Tests that if _scheme is passed in the url_for arguments, that
scheme is used instead of configuration scheme.
"""
# check _scheme overriden per url
# check _scheme overridden per url
ufs = "{{url_for('static', filename='bah.js', _scheme='http')}}"
exp = 'http://foo.s3.amazonaws.com/static/bah.js'
self.assertEquals(self.client_get(ufs).data, six.b(exp))
Expand Down