Skip to content

Commit caede4d

Browse files
committed
feat(tests): add comprehensive tests for utility functions with security logging
1 parent d2e6b36 commit caede4d

File tree

2 files changed

+773
-1
lines changed

2 files changed

+773
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function validateHeaderName(
136136
requestId?: string,
137137
req?: Request,
138138
): void {
139-
if (!name || typeof name !== "string") {
139+
if (typeof name !== "string") {
140140
const error = new Error("Header name must be a non-empty string")
141141
if (logger && req) {
142142
logger.logSecurityEvent(

0 commit comments

Comments
 (0)