Replies: 1 comment
-
Maybe you can simplify and use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a http/https proxy tool using netty to rewrite the response, here is my test code with
io.netty:netty-all:4.1.77.Final
:Code written in Kotlin
I want to proxy requests for a specific path, and then rewrite the response to return, while requests for other paths don't go through the proxy, but with the code above I can only get
io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record.
, and the browser shows ERR_EMPTY_RESPONSE:io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record.
If I remove the newSslHandler line, netty will not throw an error, but the browser shows ERR_TUNNEL_CONNECTION_FAILED.
Could you please tell me where I made a mistake, thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions