mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 05:00:23 +03:00
035b5555a9
Enhancement: Add JSON sanitization and parsing methods to HTTP agentflow. - Introduced `sanitizeJsonString` to clean problematic escape sequences and fix common JSON formatting issues. - Added `parseJsonBody` to attempt parsing JSON directly, with fallback to sanitization if parsing fails, providing clearer error messages for invalid JSON. - Updated request handling to utilize the new parsing method for JSON and x-www-form-urlencoded body types.