Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode in JSON response is altered by onResponse script - even if the script doesn't touch anything #2205

Open
martinrleon opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@martinrleon
Copy link

Description

Unicode character is not being passed thru unmodified by onResponse Script

Create an extension:

async function onResponse(context, url, request, response) {    
  return response;
}

Current Behavior

  1. If the response body JSON contains the unicode character \u0011 then it is modified by Proxyman

e.g. "text":"NO \u0011QA" becomes "text":"NO ^QQA"

Disabling the extension resolves the issue, but that means extensions cannot be used as they introduce bad JSON.

Expected Behavior

"text":"NO \u0011QA" should not be modified by Proxyman

Environment

  • App version: Proxyman 5.11.0 (51100)
  • macOS version: Sequoia 15.1
@martinrleon martinrleon added the bug Something isn't working label Dec 4, 2024
@NghiaTranUIT
Copy link
Member

Thanks, let me check it 👍

@NghiaTranUIT NghiaTranUIT self-assigned this Dec 9, 2024
@NghiaTranUIT NghiaTranUIT added this to the Proxyman 5.14.0 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants