Группа :: Сети/WWW
Пакет: cutycapt
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: CutyCapt-bea8c782-alt-method.patch
Скачать
Скачать
# https://github.com/splinter89/CutyCapt
# commit 80d2db42ebf4def45d26f702c3cc9e5976745a0d
# Author: Anton Chernyavski <i.splinter@i.ua>
# Date: Wed Sep 2 14:24:58 2015 +0300
Get "method" parameter working
--- CutyCapt.cpp
+++ CutyCapt.cpp
@@ -610,13 +610,13 @@ main(int argc, char *argv[]) {
req.setRawHeader(QByteArray(value, hv - value), hv + 1);
} else if (strncmp("--method", s, nlen) == 0) {
- if (strcmp("value", "get") == 0)
+ if (strcmp(value, "get") == 0)
method = QNetworkAccessManager::GetOperation;
- else if (strcmp("value", "put") == 0)
+ else if (strcmp(value, "put") == 0)
method = QNetworkAccessManager::PutOperation;
- else if (strcmp("value", "post") == 0)
+ else if (strcmp(value, "post") == 0)
method = QNetworkAccessManager::PostOperation;
- else if (strcmp("value", "head") == 0)
+ else if (strcmp(value, "head") == 0)
method = QNetworkAccessManager::HeadOperation;
else
(void)0; // TODO: ...