Skip to content

Commit

Permalink
Fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
mekanix committed Mar 10, 2020
1 parent 78697e9 commit 409287c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion freenit/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def post(self, args):
host = request.headers.get('Origin', request.url_root)
requestToken = create_access_token(identity, expires_delta=expires)
confirm = 'confirm'
if host[:-1] != '/':
if host[-1] != '/':
confirm = f'/{confirm}'
url = f'{host}{confirm}/{requestToken}'
msg = MIMEText(url, 'plain', 'utf-8')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='freenit',
version='0.0.28',
version='0.0.29',
description='REST API framework based on Flask-Smorest',
long_description=README,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 409287c

Please sign in to comment.