Added OpenAPI suggested headers to implicit headers list to be ignored during validation

This commit is contained in:
Vishal Shingala
2020-07-14 11:25:29 +05:30
parent a51ce6a4d7
commit e18dba0b46

View File

@@ -78,7 +78,9 @@ const async = require('async'),
// These headers are to be validated explicitly
// As these are not defined under usual parameters object and need special handling
IMPLICIT_HEADERS = [
'content-type' // 'content-type' is defined based on content/media-type of req/res body
'content-type', // 'content-type' is defined based on content/media-type of req/res body,
'accept',
'authorization'
],
/* eslint-disable arrow-body-style */