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

empty hex number #1938

Open
dingjianfeng opened this issue Jan 12, 2025 · 2 comments
Open

empty hex number #1938

dingjianfeng opened this issue Jan 12, 2025 · 2 comments

Comments

@dingjianfeng
Copy link

I use fasthttp as http client, and i get "empty hex number" error when the http response header contains Transfer-Encoding:"chunked" and Connection:"close". How can i solve this problem.

@dingjianfeng
Copy link
Author

the http response header just like this:
Date:"Tue, 24 Dec 2024 08:11:34 GMT", Content-Type:"application/json;charset=UTF-8", Transfer-Encoding:"chunked", Connection:"close", Server:"openresty/1.25.3.1", X-SERVICE-CODE:"0000000000", X-Kong-Upstream-Latency:"1254", X-Kong-Proxy-Latency:"5", Via:"kong/1.3.0"

@erikdubbelboer
Copy link
Collaborator

Can you fmt.Printf("%q\n%q", header, resp) (or req) and show the output here?

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

No branches or pull requests

2 participants