Fix /raw bug

pull/5/head
Cesura 4 years ago
parent f3667b6144
commit d60e632177

@ -141,7 +141,7 @@ def raw():
abort(401) abort(401)
# Create paste # Create paste
unique_id, key = new_paste("Untitled", request.data.decode('utf-8'), source_ip, single=False, encrypt=False) unique_id, key = functions.new_paste("Untitled", request.data.decode('utf-8'), source_ip, single=False, encrypt=False)
link = request.url.rsplit('/', 1)[0] + "/view/" + unique_id link = request.url.rsplit('/', 1)[0] + "/view/" + unique_id
return link, 200 return link, 200

Loading…
Cancel
Save