Merge pull request #44 from Lucke0051/master

Add Content-Type headers for online results
This commit is contained in:
Erik Melin 2022-02-19 22:37:52 +01:00 committed by GitHub
commit 207af5f771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,6 +460,14 @@ void OnlineResults::process(gdioutput &gdi, oEvent *oe, AutoSyncType ast) {
key.push_back(mk1);
pair<wstring, wstring> mk2(L"pwd", passwd);
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;
string tmp;