Fix headers in multipart
This commit is contained in:
parent
54acaa3cb4
commit
beffabe167
@ -32,7 +32,6 @@ addFile /c/Qt/5.9/mingw53_32/bin/Qt5Network.dll
|
|||||||
addFile /c/Qt/5.9/mingw53_32/bin/Qt5Gui.dll
|
addFile /c/Qt/5.9/mingw53_32/bin/Qt5Gui.dll
|
||||||
addFile /c/Qt/5.9/mingw53_32/bin/Qt5Widgets.dll
|
addFile /c/Qt/5.9/mingw53_32/bin/Qt5Widgets.dll
|
||||||
addFile /c/Qt/5.9/mingw53_32/bin/Qt5WinExtras.dll
|
addFile /c/Qt/5.9/mingw53_32/bin/Qt5WinExtras.dll
|
||||||
addFile /c/Qt/5.9/mingw53_32/bin/Qt5Network.dll
|
|
||||||
|
|
||||||
addFileIn /c/Qt/5.9/mingw53_32/plugins/platforms/qwindows.dll platforms
|
addFileIn /c/Qt/5.9/mingw53_32/plugins/platforms/qwindows.dll platforms
|
||||||
|
|
||||||
|
@ -50,4 +50,6 @@ make
|
|||||||
On systems with FFMpeg pre-3.1 you need to apply `OlderSystemFix.patch` to `recording/encoders/encoder.cpp`.
|
On systems with FFMpeg pre-3.1 you need to apply `OlderSystemFix.patch` to `recording/encoders/encoder.cpp`.
|
||||||
On systems with Qt pre-5.7 you need to install the Qt version from their website.
|
On systems with Qt pre-5.7 you need to install the Qt version from their website.
|
||||||
You can attempt to `curl https://raw.githubusercontent.com/ArsenArsen/KShare/master/install.sh | bash`
|
You can attempt to `curl https://raw.githubusercontent.com/ArsenArsen/KShare/master/install.sh | bash`
|
||||||
|
|
||||||
|
You can find more details [here](https://blog.arsenarsen.com/posts/compiling-kshare-on-linux-mac-os-x-and-windows-final-revision)
|
||||||
###### Started on 19th of April 2017 to bring some attention and improvement to Linux screenshotting.
|
###### Started on 19th of April 2017 to bring some attention and improvement to Linux screenshotting.
|
||||||
|
@ -16,7 +16,7 @@ installIfNeeded pkg-config
|
|||||||
installIfNeeded git
|
installIfNeeded git
|
||||||
resultfile="$(pwd)/KShare/build/KShare.app/"
|
resultfile="$(pwd)/KShare/build/KShare.app/"
|
||||||
elif [[ "$uname" = "Linux" ]]; then
|
elif [[ "$uname" = "Linux" ]]; then
|
||||||
echo "Please install Qt5 SDK, qmake, ffmpeg development files, git, and pkgcondig"
|
echo "Please install Qt5 SDK, qmake, ffmpeg development files, git, and pkgconfig"
|
||||||
bash
|
bash
|
||||||
resultfile="$(pwd)/KShare/build/KShare"
|
resultfile="$(pwd)/KShare/build/KShare"
|
||||||
else echo "Unsupported OS!" && exit 1; fi
|
else echo "Unsupported OS!" && exit 1; fi
|
||||||
|
@ -28,7 +28,7 @@ void ioutils::postMultipartData(QUrl target,
|
|||||||
std::function<void(QByteArray, QNetworkReply *)> callback) {
|
std::function<void(QByteArray, QNetworkReply *)> callback) {
|
||||||
QNetworkRequest req(target);
|
QNetworkRequest req(target);
|
||||||
for (auto header : headers) {
|
for (auto header : headers) {
|
||||||
req.setRawHeader(header.first.toUtf8(), header.second.toUtf8());
|
if (header.first.toLower() != "content-type") req.setRawHeader(header.first.toUtf8(), header.second.toUtf8());
|
||||||
}
|
}
|
||||||
QNetworkReply *reply = networkManager.post(req, body);
|
QNetworkReply *reply = networkManager.post(req, body);
|
||||||
QObject::connect(reply, &QNetworkReply::finished, [reply, callback] {
|
QObject::connect(reply, &QNetworkReply::finished, [reply, callback] {
|
||||||
|
Loading…
Reference in New Issue
Block a user