expressjs / compression

Node.js compression middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when compressing characters like ū

tsukinoko-kun opened this issue · comments

commented

I tried to compress "Chūnin" and this compression function crashed.
Tried to use btoa("Chūnin") but btoa doesn't support non-ASCII either.

Hi @Frank-Mayer sorry to hear that. We have tests already for strange characters and I quickly modified the test to use Chūnin and didn't have an issue. Can you provide the following information to help us diagnose?

  1. Version of Node.js
  2. Version of this module
  3. The error you are getting, ideally with stack trace if possible
  4. Code to replicate the problem

Thank you!