From 16d162a96b41fef3c5a852f53a11c9e6234b45b3 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Sun, 18 Mar 2018 18:09:27 +0100
Subject: [PATCH] Improved upload API

---
 templates/upload.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/templates/upload.html b/templates/upload.html
index 13852e7..e465fc7 100644
--- a/templates/upload.html
+++ b/templates/upload.html
@@ -44,8 +44,7 @@
                 img.src = e.target.result;
                 node.appendChild(img);
                 results.appendChild(node);
-                fetch({
-                    url: "/upload",
+                fetch("/upload", {
                     credentials: "include"
                 }).then((response) => {
                     return response.json()
-- 
GitLab