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/Qt5Widgets.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
|
||||
|
||||
|
@ -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 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 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.
|
||||
|
@ -16,7 +16,7 @@ installIfNeeded pkg-config
|
||||
installIfNeeded git
|
||||
resultfile="$(pwd)/KShare/build/KShare.app/"
|
||||
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
|
||||
resultfile="$(pwd)/KShare/build/KShare"
|
||||
else echo "Unsupported OS!" && exit 1; fi
|
||||
|
@ -28,7 +28,7 @@ void ioutils::postMultipartData(QUrl target,
|
||||
std::function<void(QByteArray, QNetworkReply *)> callback) {
|
||||
QNetworkRequest req(target);
|
||||
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);
|
||||
QObject::connect(reply, &QNetworkReply::finished, [reply, callback] {
|
||||
|
Loading…
Reference in New Issue
Block a user