Merge pull request #44 from Lucke0051/master
Add Content-Type headers for online results
This commit is contained in:
commit
207af5f771
@ -460,6 +460,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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user