Skip to content

Conversation

foxxqin
Copy link

@foxxqin foxxqin commented Jun 10, 2025

Description

This pull request fixes an issue with HTTP response decoding in the http_request.py tool. Previously, when handling responses with non-ASCII characters (particularly Chinese and other non-Latin scripts), the tool would sometimes incorrectly decode the content, resulting in garbled text or encoding errors. The fix improves the encoding detection logic to properly handle various character sets.

Related Issues

#79

Documentation PR

It's a minor tool fix, no related documentation.

Type of Change

  • Bug fix
  • New Tool
  • Breaking change
  • Other (please describe):

Testing

I passed hatch fmt and hatch test.

  • hatch fmt --linter
  • hatch fmt --formatter
  • hatch test --all

Checklist

  • I have read the CONTRIBUTING document

  • I have added tests that prove my fix is effective or my feature works

  • I have updated the documentation accordingly

  • I have added an appropriate example to the documentation to outline the feature

  • My changes generate no new warnings

  • Any dependent changes have been merged and published

  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@foxxqin foxxqin requested a review from a team as a code owner June 10, 2025 05:34
Copy link
Member

@cagataycali cagataycali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing! 🚀

@cagataycali cagataycali enabled auto-merge (squash) July 19, 2025 01:33
@cagataycali cagataycali disabled auto-merge August 29, 2025 02:22
@cagataycali cagataycali enabled auto-merge (squash) August 29, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants