Skip to content

Commit 2ccd66e

Browse files
committed
fix: stricter check
1 parent c98599f commit 2ccd66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/plugins/oas/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default async ({ specPath, ajvBodyOptions = {}, ajvHeadersOptions = {} })
132132

133133
const headerOptional = dereference(responseHeadersSpec, header, 'required') !== true;
134134

135-
if (!response.headers[header.toLowerCase()] && headerOptional) {
135+
if (response.headers[header.toLowerCase()] === undefined && headerOptional) {
136136
return;
137137
}
138138

0 commit comments

Comments
 (0)