summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js')
-rw-r--r--includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js b/includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js
deleted file mode 100644
index 749c985..0000000
--- a/includes/external/addressbook/node_modules/http2-wrapper/source/utils/validate-header-value.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-const {
- ERR_HTTP_INVALID_HEADER_VALUE,
- ERR_INVALID_CHAR
-} = require('./errors.js');
-
-const isInvalidHeaderValue = /[^\t\u0020-\u007E\u0080-\u00FF]/;
-
-module.exports = (name, value) => {
- if (typeof value === 'undefined') {
- throw new ERR_HTTP_INVALID_HEADER_VALUE(value, name);
- }
-
- if (isInvalidHeaderValue.test(value)) {
- throw new ERR_INVALID_CHAR('header content', name);
- }
-};