[PR #881] [MERGED] Fixed Axios parsing JSON for non-JSON content-types #2919

Closed
opened 2026-03-17 00:34:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/881
Author: @AndrewBastin
Created: 5/19/2020
Status: Merged
Merged: 5/19/2020
Merged by: @liyasthomas

Base: masterHead: bugfix/869


📝 Commits (1)

  • c2a919e Fixed axios parsing JSON for non-JSON content types

📊 Changes

2 files changed (+24 additions, -2 deletions)

View changed files

📝 functions/strategies/AxiosStrategy.js (+23 -1)
📝 package-lock.json (+1 -1)

📄 Description

This PR intends to update the axios default behaviour of parsing JSON strings to JSON objects even if the content-type is not JSON type.

This PR fixes #869


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/881 **Author:** [@AndrewBastin](https://github.com/AndrewBastin) **Created:** 5/19/2020 **Status:** ✅ Merged **Merged:** 5/19/2020 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `master` ← **Head:** `bugfix/869` --- ### 📝 Commits (1) - [`c2a919e`](https://github.com/hoppscotch/hoppscotch/commit/c2a919e17815d9260432e397196e9d5061349c53) Fixed axios parsing JSON for non-JSON content types ### 📊 Changes **2 files changed** (+24 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `functions/strategies/AxiosStrategy.js` (+23 -1) 📝 `package-lock.json` (+1 -1) </details> ### 📄 Description This PR intends to update the axios default behaviour of parsing JSON strings to JSON objects even if the content-type is not JSON type. This PR fixes #869 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:34:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2919
No description provided.