@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.
@@ -442,7 +442,8 @@ class LambdaResponseBuffered extends node_stream.Writable {
442
442
  //
443
443
  buildResult() {
444
444
  const body = Buffer.concat(this._chunks);
445
- const contentType = this.getHeader("content-type") || "";
445
+ // Use direct _headers access to bypass dd-trace interception
446
+ const contentType = this._headers.get("content-type") || "";
446
447
  // Determine if response should be base64 encoded
447
448
  const isBase64Encoded = this.isBinaryContentType(contentType);
448
449
  // Build headers object