Add Content-Type headers for online results

This commit is contained in:
Lucke 2021-10-05 09:40:05 +02:00
parent 67e7e24bd5
commit f811d6a5f6

View File

@ -435,6 +435,14 @@ void OnlineResults::process(gdioutput &gdi, oEvent *oe, AutoSyncType ast) {
key.push_back(mk1); key.push_back(mk1);
pair<wstring, wstring> mk2(L"pwd", passwd); pair<wstring, wstring> mk2(L"pwd", passwd);
key.push_back(mk2); key.push_back(mk2);
if (zipFile) {
pair<wstring, wstring> mk3(L"Content-Type", L"application/zip");
key.push_back(mk3);
} else {
pair<wstring, wstring> mk3(L"Content-Type", L"application/xml");
key.push_back(mk3);
}
bool moreToWrite = true; bool moreToWrite = true;
string tmp; string tmp;