worker: Removed trailing \n
All checks were successful
Build Docker / Build Bot (push) Successful in 25s
Build Docker / Build Master (push) Successful in 26s

This commit is contained in:
Nathan Woodburn 2023-08-17 13:52:23 +10:00
parent f72016332a
commit 01ad92442f
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -47,6 +47,8 @@ def tlsa():
except FileNotFoundError: except FileNotFoundError:
return jsonify({'error': 'TLSA record not found', 'success': 'false'}) return jsonify({'error': 'TLSA record not found', 'success': 'false'})
# Remove newlines
tlsa = tlsa.replace('\n', '')
return jsonify({'domain': domain, 'tlsa': tlsa}) return jsonify({'domain': domain, 'tlsa': tlsa})