GithubHelp home page GithubHelp logo

Comments (3)

adamfisk avatar adamfisk commented on May 23, 2024

Thanks Emil -- good catch. Does that fix work fully for you? It seems like we'd also need to strip our the HttpResponseDecoder once the CONNECT tunnel is established, as otherwise I think LittleProxy will try to read all the encrypted data coming back as HTTP responses. Has that not caused a problem for you?

from littleproxy.

EmilGoicovici avatar EmilGoicovici commented on May 23, 2024

No, I had no issues with my fix. I don't have time right now to debug these classes at runtime, but as I can see from the source-code, the ChannelPipeline instance used between LittleProxy <-> upstream chain proxy does not have any HttpResponseDecoder handler on it (as you can see, the handlers for this pipeline are added inside HttpRequestHandler.newChannelFuture() method; there is no decoder appended there, just the HttpConnectRelayingHandler instance ). I append one encoder on my fix source-code and remove it when the write operation completes in order to be able to forward the HTTP request to the upstream chain proxy. After that point, LittleProxy acts just as a relay for that connection.

from littleproxy.

adamfisk avatar adamfisk commented on May 23, 2024

OK -- I had previously committed a half-baked implementation of this fix by mistake, but I just committed the real thing.

I'm closing this out for now. Thanks again.

from littleproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.