ShiliangLuo

Results comments of ShiliangLuo

我已经给这个问题搞死了。弄了几天还没定位问题在哪。关键是不打开控制台就会报错,打开就没有

> > Downgrading to Claude Code v2.1.68 works > > Indeed useful It works

If I change the order of the sentence: ctx.message = '中文'; ctx.body = 'hello world'; the program will run successfully, but the result of ctx.message is not changed. Puzzled!

> @ShiliangLuo 这似乎是node的问题, > > 执行`ctx.message = '中文';` 时会设置` res.statusMessage = '中文';` > > 对应代码在 > > https://github.com/koajs/koa/blob/8c1dd481207de0930956304a3e9f1e103f8492a5/lib/response.js#L111-L115 > > node中对`statusMessage`做了限制,需要满足正则表达式`/[^\t\x20-\x7e\x80-\xff]/`,代码在 > > https://github.com/nodejs/node/blob/ccb8aae3932c13f33622203b2ffc5a33120e9d40/lib/_http_common.js#L224-L235 > > 下面这个issue有提到这个问题 [nodejs/node#28797](https://github.com/nodejs/node/issues/28797) 嗯,后来我找到原因了