Its working!!!

This commit is contained in:
Brad Arant committed 2021-08-11 21:37:48 -07:00
1 parent a3ba545c59
commit 1632a41b3e
5 files changed
+67 -59

No files matched your search

+4 -4
View File
@@ -48,7 +48,7 @@ namespace coreutils {
if(header.getKey().equals(key)) {
ZString value = header.getValue();
if(valueOnly) {
std::vector<ZString> split = ZString(value).split(ZString((char *)";"));
std::vector<ZString> split = ZString(value).split(";");
value = split[0];
}
return value;
@@ -60,10 +60,10 @@ namespace coreutils {
ZString IMFMessage::getHeaderKeyPairValue(ZString headerKey, ZString key) {
ZString value;
ZString psource(getHeader(headerKey, false));
std::vector<ZString> sourcep = psource.split((char *)";");
for(ZString work: sourcep) {
std::vector<ZString> sourcep = psource.split(";");
for(ZString work: sourcep) {
work.skipWhitespace();
ZString token = work.getTokenExclude((char *)"=");
ZString token = work.getTokenExclude("=");
if(work.ifNext((char *)"=")) {
if(token.equals(key)) {
if(work.ifNext((char *)"\"")) {