Commit e13b7479 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(Captiveportal, new) remove enters from base64 data in strip_template

(cherry picked from commit 867b0600)
parent 4cf4784a
......@@ -99,7 +99,7 @@ if 'error' not in response:
# new file, always write
zf_out.writestr(filename, file_data)
if 'error' not in response:
response['payload'] = output_data.getvalue().encode('base64').strip()
response['payload'] = output_data.getvalue().encode('base64').strip().replace('\n' ,'')
response['size'] = len(response['payload'])
print(ujson.dumps(response))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment