Skip to content

Commit

Permalink
[bugfix] qmake typo and fixing QList.append compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed Feb 2, 2020
1 parent 70fca2e commit f1dd39e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
```
$ git clone https://github.com/klesh/libqcurl.git
$ cd libqcurl
$ make builds && cd builds
$ qmake && make && sudo make install
& mkdir builds && cd builds
$ qmake .. && make && sudo make install
$ pkg-config --libs libqcurl
```

Expand Down
3 changes: 2 additions & 1 deletion libqcurl/libqcurl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ unix {
QMAKE_PKGCONFIG_NAME = libqcurl
QMAKE_PKGCONFIG_FILE = libqcurl
QMAKE_PKGCONFIG_DESCRIPTION = Make Network Access easier on Qt with curl
QMAKE_PKGCONFIG_PREFIX = $$QMAKE_PKGCONFIG_PREFIX
# QMAKE_PKGCONFIG_PREFIX = $$QMAKE_PKGCONFIG_PREFIX
QMAKE_PKGCONFIG_PREFIX = /usr
QMAKE_PKGCONFIG_LIBDIR = ${prefix}/lib
QMAKE_PKGCONFIG_INCDIR = ${prefix}/include
QMAKE_PKGCONFIG_VERSION = $$VERSION
Expand Down
4 changes: 2 additions & 2 deletions tests/test_http/tst_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Http::testPost()

// post ordinary form
QCurlForm form;
form.append({"hello", "world"});
form.append(QPair<QString, QString>({"hello", "world"}));
auto res3 = QCurl::post(QUrl("http://localhost:7880/form"), form);
QCOMPARE(res3.responseText(), "world");

Expand All @@ -99,7 +99,7 @@ void Http::testPost()

// upload file by multipart
QCurlMultipart parts;
parts.append({"filename", "plaintextfile.txt"});
parts.append(QPair<QString, QString>({"filename", "plaintextfile.txt"}));

const QString possibleCharacters("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
const int randomStringLength = 1024 * 23; // assuming you want random strings of 12 characters
Expand Down

0 comments on commit f1dd39e

Please sign in to comment.