Giter Club home page Giter Club logo

Comments (5)

nfriedly avatar nfriedly commented on July 19, 2024

Can you give me an example where this causes trouble?

The first change shouldn't have any effect because of how iconv.encodingExists handles undefined:

iconv.encodingExists(undefined);
//> false

and the else if block is mainly used for when we need to scan through the HTML looking for a <meta charset=... tag. That's usually because charset == undefined, so in that case, adding charset && to the if would break it.

But, that said, this stuff is tricky and I wouldn't be surprised if there is a bug in there somewhere. If you can give me a unit test or URL where things fail, that would be very helpful.

from node-unblocker.

vitaliydz avatar vitaliydz commented on July 19, 2024

Trouble on page - https://2ip.ru/ when try to load data from this URL (method POST) -
https://2ip.ru/?area=ajaxIspRatingListViewer

from node-unblocker.

nfriedly avatar nfriedly commented on July 19, 2024

Ok, I figured it out and added a test for it - the code that was supposed to find the <meta charset... tag had a bug where if it never saw a <meta... or </head> tag, it would buffer indefinitely instead of just passing the data along.

But now another test is failing on the CI (but passing on my laptop), so I've got some more debugging to do...

from node-unblocker.

nfriedly avatar nfriedly commented on July 19, 2024

Fixed (the test infrastructure I was using got more strict in a minor release, and the old version on my laptop passed, but the current version that travis ci installed didn't...)

Version 1.0.8 released, please try it out and let me know if it works for you.

from node-unblocker.

vitaliydz avatar vitaliydz commented on July 19, 2024

Now all ok)
Thanks!

from node-unblocker.

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.