waibu 1.2.10 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ const onRequest = {
16
16
  const method = plain ? req.method : chalk[c](req.method)
17
17
  const url = plain ? (':' + req.url) : chalk.gray(':' + req.url)
18
18
  const ip = plain ? this.getIp(req) : chalk.magenta(this.getIp(req))
19
- let msg = this.app[ns].print.write('httpReq%s%s%s%s', arrow, method, url, ip)
19
+ let msg = this.app[ns].print.write('httpReq%s%s%s%s', arrow, method, url.replaceAll('%', '%%'), ip)
20
20
  if (req.headers['content-length']) msg += this.app[ns].print.write('httpReqExt%s', req.headers['content-length'])
21
21
  if (this.config.deferLog) {
22
22
  this.reqLog = this.reqLog ?? {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {