This commit is contained in:
barant committed 2020-08-05 11:57:35 -07:00
1 parent 591705f897
commit 4f95b4591b
4 files changed
+16 -10

No files matched your search

+2 -1
View File
@@ -8,10 +8,11 @@ namespace coreutils {
}
IMFHeader::IMFHeader(PString &in) {
printf("in='%s'\n", in.str().c_str());
key = in.getTokenInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-");
if(key.length() != 0) {
if(!in.ifNext(":")) {
printf("%02X\n", in.str()[0]);
printf("key=%s %02X\n", key.c_str(), in.str()[0]);
throw coreutils::Exception("Invalid character in expected header token.");
}
in.skipWhitespace();