Skip to content

Commit

Permalink
Исправлена ошибка парсинга xml файлов на бэке
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiontik committed Jun 10, 2024
1 parent 0fa409d commit 69cb5a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/helpers/request.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ axios.interceptors.response.use(
response.data = JSON.parse(response.data);
else if ((url.indexOf('.yaml/raw') >= 0) || url.endsWith('.yaml'))
response.data = yaml.parse(response.data);
else if ((url.indexOf('.xml/raw') >= 0) || url.endsWith('.xml'))
response.data = xml.parse(response.data);
}
}
return response;
Expand Down

0 comments on commit 69cb5a5

Please sign in to comment.