From d60e6321770ab721cb60ace9e82df305de1f92da Mon Sep 17 00:00:00 2001 From: Cesura Date: Thu, 15 Apr 2021 15:37:56 +0300 Subject: [PATCH] Fix /raw bug --- pastey/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pastey/routes.py b/pastey/routes.py index 979ac9d..ef13fea 100644 --- a/pastey/routes.py +++ b/pastey/routes.py @@ -141,7 +141,7 @@ def raw(): abort(401) # 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 return link, 200