Skip to content

Commit 4376b7e

Browse files
committed
Update changelog
1 parent 1c93d4f commit 4376b7e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

_changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Also see: [Architect changelog](https://github.com/architect/architect/blob/main
66

77
---
88

9+
## [5.3.3] 2022-12-14
10+
11+
### Changed
12+
13+
- Minor performance improvement to `arc.http` binary content type checks; thanks @gyx1000!
14+
15+
---
16+
917
## [5.3.2] 2022-12-12
1018

1119
### Changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-spec",
1616
"test:integration": "cross-env tape 'test/integration/**/*-test.js' | tap-spec",
1717
"coverage": "nyc --reporter=lcov --reporter=text npm run test:unit",
18-
"_test": "npm run lint && npm run test:unit",
1918
"test": "npm run lint && npm run test:integration && npm run coverage",
2019
"test:types": "tsd --files types/*.test-d.ts",
2120
"rc": "npm version prerelease --preid RC"

src/http/_res-fmt.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ module.exports = function responseFormatter (req, params) {
167167
}
168168

169169
// Handle body encoding (if necessary)
170-
let [ cTest ] = (res.headers['content-type'] || '').split(';')
171-
let isBinary = binaryTypes.includes(cTest)
170+
let [ contentType ] = (res.headers['content-type'] || '').split(';')
171+
let isBinary = binaryTypes.includes(contentType)
172172
let bodyIsString = typeof res.body === 'string'
173173
let b64enc = i => new Buffer.from(i).toString('base64')
174174
function compress (body) {

0 commit comments

Comments
 (0)