mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
PNG's magic bytes are 89 50 4E 47, but detectImageMime only checked
the first three. The WebP branch in the same function correctly checks
all four bytes of its signature — the PNG path was clearly an oversight.
Extend the PNG check to include 0x47 ('G') for consistency and to
eliminate the (admittedly rare) false-positive window.
|
||
|---|---|---|
| .. | ||
| accounts.ts | ||
| api.ts | ||
| index.ts | ||
| login.ts | ||
| media.test.ts | ||
| media.ts | ||
| monitor.ts | ||
| send.test.ts | ||
| send.ts | ||
| types.ts | ||
| WeixinAdapter.ts | ||