Mercurial > gemma
comparison client/src/components/stretches/Stretches.vue @ 4632:2e47b32a389d
client: encode strings in url paths
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 11 Oct 2019 12:54:15 +0200 |
parents | cdd332dbebbf |
children | 008bc1ae8897 |
comparison
equal
deleted
inserted
replaced
4631:15372dd971e9 | 4632:2e47b32a389d |
---|---|
141 } | 141 } |
142 }, | 142 }, |
143 methods: { | 143 methods: { |
144 download(stretch) { | 144 download(stretch) { |
145 const { name } = stretch.properties; | 145 const { name } = stretch.properties; |
146 HTTP.get(`/data/stretch/shape/${name}`, { | 146 HTTP.get(`/data/stretch/shape/${encodeURIComponent(name)}`, { |
147 responseType: "blob", | 147 responseType: "blob", |
148 headers: { | 148 headers: { |
149 "X-Gemma-Auth": localStorage.getItem("token") | 149 "X-Gemma-Auth": localStorage.getItem("token") |
150 } | 150 } |
151 }).then(response => { | 151 }).then(response => { |