Giter Site home page Giter Site logo

Gzip support? about harmon HOT 6 CLOSED

no9 avatar no9 commented on August 25, 2024
Gzip support?

from harmon.

Comments (6)

No9 avatar No9 commented on August 25, 2024

Thanks for the kind words.
As always pull requests are greatfully recieved.
Especially with additional documentation for realworld use cases :)

from harmon.

DTrejo avatar DTrejo commented on August 25, 2024

Yes I'll send over the two lines tomorrow.

Key info:

  1. remove accept header before making request to remote site
  2. set host header to the host of the site you are proxying to.

These things fixed my issues.

I wasnt able to use all of Harmon because I could not append HTML to an
element using trumpet :(

But I still used your monkeypatching code and conditional execution. Very
helpful.

I'll credit you when I publish the module, probably also tomorrow.

Cheers!
David
On Feb 11, 2015 2:33 PM, "Anton Whalley" [email protected] wrote:

Thanks for the kind words.
As always pull requests are greatfully recieved.
Especially with additional documentation for realworld use cases :)


Reply to this email directly or view it on GitHub
#19 (comment).

from harmon.

DTrejo avatar DTrejo commented on August 25, 2024

For those reading this later, you can see what I came up with over here: https://github.com/DTrejo/neo-proxy

from harmon.

No9 avatar No9 commented on August 25, 2024

Hi @DTrejo Gzip support and a sample has been added to the repo
https://github.com/No9/harmon/blob/master/examples/gzipped.js

from harmon.

DTrejo avatar DTrejo commented on August 25, 2024

Thanks man!

Also, check it out, I gave you credit :)

https://github.com/DTrejo/neo-proxy#credits

Have a great day man and thanks for saving me so much time & not having to write this myself :)

Best,
D

from harmon.

No9 avatar No9 commented on August 25, 2024

👍 thanks for the credit

from harmon.

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.