jsoverson / puppeteer-interceptor

Easy request interception/response modification for puppeteer
51 stars 16 forks source link

Please don't use atob on text data #2

Open reedom opened 4 years ago

reedom commented 4 years ago

I saw it had collapsed non-ascii characters originally encoded in utf-8.

For example, for ブーツ it produced ブーツ.

It'd be favorable to respect Content-Type in the response header. Also, it'd be nice to pass the original base64 encoded data to event handlers that will bring a chance to solve this kind of problem by them.