[NODEJS-1767] Make type dectection way better

Fix an issue that some entry point cannot run well under GET mode