Skip to content

Commit 162b7b4

Browse files
authored
Merge pull request #40 from mekanix/feature/double-slash
Fix it
2 parents 78697e9 + 409287c commit 162b7b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

freenit/api/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def post(self, args):
141141
host = request.headers.get('Origin', request.url_root)
142142
requestToken = create_access_token(identity, expires_delta=expires)
143143
confirm = 'confirm'
144-
if host[:-1] != '/':
144+
if host[-1] != '/':
145145
confirm = f'/{confirm}'
146146
url = f'{host}{confirm}/{requestToken}'
147147
msg = MIMEText(url, 'plain', 'utf-8')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='freenit',
12-
version='0.0.28',
12+
version='0.0.29',
1313
description='REST API framework based on Flask-Smorest',
1414
long_description=README,
1515
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)