Skip to content

Commit 9759f5c

Browse files
committed
change codepoint for ORIGIN from 0xb to 0xc
1 parent e12eb8e commit 9759f5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/protocol/framer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,10 @@ Deserializer.ALTSVC = function readAltSvc(buffer, frame) {
10691069
}
10701070
};
10711071

1072-
frameTypes[0xB] = 'ORIGIN';
1072+
// frame 0xB was BLOCKED and some versions of chrome will
1073+
// throw PROTOCOL_ERROR upon seeing it with non 0 payload
1074+
1075+
frameTypes[0xC] = 'ORIGIN';
10731076
frameFlags.ORIGIN = [];
10741077
typeSpecificAttributes.ORIGIN = ['originList'];
10751078

0 commit comments

Comments
 (0)