changeset 2991:ce0a1fa84575

client: set timeout for http requests
author Markus Kottlaender <markus@intevation.de>
date Wed, 10 Apr 2019 11:30:30 +0200
parents dfeb2928232b
children 5f617f25e646
files client/src/lib/http.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/lib/http.js	Wed Apr 10 11:14:21 2019 +0200
+++ b/client/src/lib/http.js	Wed Apr 10 11:30:30 2019 +0200
@@ -19,7 +19,8 @@
 const UNAUTHORIZED = 401;
 
 const HTTP = axios.create({
-  baseURL: process.env.VUE_APP_API_URL || "/api"
+  baseURL: process.env.VUE_APP_API_URL || "/api",
+  timeout: 5000
   /* headers: {
     Authorization: 'Bearer {token}'
   }*/