replace all typeof calls

This commit is contained in:
Sefa Ilkimen
2018-02-09 10:06:32 +01:00
parent a9bdca2d6d
commit b68cbcd157
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ var publicInterface = {
throw new Error(messages.ADDING_COOKIES_NOT_SUPPORTED);
}
if (typeof value !== 'string') {
if (helpers.getTypeOf(value) !== 'String') {
throw new Error(messages.HEADER_VALUE_MUST_BE_STRING);
}