mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 08:45:16 -05:00
Merge branch 'master' into change-v2-error-resp
This commit is contained in:
@@ -28,7 +28,7 @@ def get_auth_token(req):
|
||||
if not auth_header:
|
||||
raise AuthError('Unauthorized, authentication token must be provided', 401)
|
||||
|
||||
auth_scheme = auth_header[:7]
|
||||
auth_scheme = auth_header[:7].title()
|
||||
|
||||
if auth_scheme != 'Bearer ':
|
||||
raise AuthError('Unauthorized, authentication bearer scheme must be used', 401)
|
||||
|
||||
@@ -136,7 +136,7 @@ def send_sms(self,
|
||||
)
|
||||
|
||||
current_app.logger.info(
|
||||
"SMS {} created at {}".format(notification_id, created_at)
|
||||
"SMS {} created at {} for job {}".format(notification_id, created_at, notification.get('job', None))
|
||||
)
|
||||
|
||||
except SQLAlchemyError as e:
|
||||
|
||||
Reference in New Issue
Block a user