@jaypie/express 1.2.4-rc10 → 1.2.4-rc11
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.
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -440,7 +440,8 @@ class LambdaResponseBuffered extends Writable {
|
|
|
440
440
|
//
|
|
441
441
|
buildResult() {
|
|
442
442
|
const body = Buffer.concat(this._chunks);
|
|
443
|
-
|
|
443
|
+
// Use direct _headers access to bypass dd-trace interception
|
|
444
|
+
const contentType = this._headers.get("content-type") || "";
|
|
444
445
|
// Determine if response should be base64 encoded
|
|
445
446
|
const isBase64Encoded = this.isBinaryContentType(contentType);
|
|
446
447
|
// Build headers object
|