Commit Graph

70 Commits

Author SHA1 Message Date
tastytea 57238020a3
Do not return lowercased header, but the original one. 2019-10-07 23:06:15 +02:00
tastytea 719f8a7664
Actually delete parameters in delete_params(). 2019-10-06 16:39:06 +02:00
tastytea d43b1c72db
Match headers case-insensitively. 2019-10-06 14:58:04 +02:00
tastytea d2a4d835de
Moved set_proxy() to API::http().
continuous-integration/drone/push Build is failing Details
API::set_proxy() calls API::http::set_proxy(). Deleted API::get_proxy().
2019-08-25 04:50:08 +02:00
tastytea acbcb6224e
Mastodon::http inherits proxy config from parent.
continuous-integration/drone/push Build is passing Details
Ff set_proxy() is called, _http.inherit_proxy() is called.
2019-08-21 11:06:41 +02:00
tastytea 188033a0c1
Simplify get_proxy(). 2019-08-21 10:52:06 +02:00
tastytea c48c1a66f2
Removed and replaced last bits of curlpp.
continuous-integration/drone/push Build is passing Details
2019-08-21 04:54:17 +02:00
tastytea bc58a977f0
Add more debug statements around forms. 2019-08-21 03:35:44 +02:00
tastytea f97608ecfa
[WIP] Switch from curlpp to POCO.
Compilable, but untested and unfinished.
2019-08-20 18:13:51 +02:00
tastytea 231663b07e
Changed license to AGPL3.
continuous-integration/drone/push Build is passing Details
2019-08-15 22:53:38 +02:00
tastytea dbce486c9b
Blocked Kiwi Farms, added explanation in README.
continuous-integration/drone/push Build is passing Details
2019-07-14 18:01:10 +02:00
tastytea 9b0c68f2bf
Prevent usage with Gab domains.
continuous-integration/drone/push Build is passing Details
2019-06-26 02:35:35 +02:00
tastytea 57bf54ed32
Fixed regex in unescape_html(). 2019-05-18 06:16:54 +02:00
tastytea a766ff001c
Check if files exists. 2019-04-27 21:38:01 +02:00
tastytea eaaa63a20c
Fixed definition of newly moved functions, changed calls to them.
the build was successful Details
2019-04-19 10:42:30 +02:00
tastytea fb27e79b3d
Deprecated API::urlencode, API::urldecode, API::unescape_html.
the build failed Details
Replaced by Mastodon::urlencode, Mastodon::urldecode,
Mastodon::unescape_html.
2019-04-19 09:11:37 +02:00
tastytea 2527e9523e
Added support for /api/v1/filters and /api/v1/filters/:id. 2019-04-19 05:20:48 +02:00
tastytea 7d245e0df1
Fixed deletion of parameters. 2019-04-14 19:57:39 +02:00
tastytea a0d47d48fa
Replaced parametermap with own types.
the build was successful Details
2019-04-12 01:10:33 +02:00
tastytea b49e8600ac
Moved types to types.hpp and reformatted mastodon-cpp.hpp.
Also renamed easy/types.hpp to easy/types_easy.hpp.
2019-04-02 11:16:52 +02:00
tastytea 38e8809b92
Moved return_base and return_call to their own header. 2019-04-02 10:37:27 +02:00
tastytea ff0bd7b906
Replaced for-loop with std::transform.
the build was successful Details
2019-03-30 22:24:15 +01:00
tastytea 54a1fb0d3e
Added Easy::time as time type.
the build was successful Details
2019-03-29 14:44:39 +01:00
tastytea 354f7e1b90
Removed unnecessary type qualifiers. 2019-03-28 13:45:30 +01:00
tastytea 0b35fa0828
Uodated copyright years. 2019-03-20 06:15:43 +01:00
tastytea c4fae35100
Reformatted for 80 char rule.
the build was successful Details
2019-03-14 18:34:34 +01:00
tastytea f227b25e85
Revert "Added const to overloaded operators."
the build was successful Details
This reverts commit 2103eb4ac2.
2019-03-03 12:24:09 +01:00
tastytea 2103eb4ac2
Added const to overloaded operators.
the build failed Details
2019-03-03 12:14:11 +01:00
tastytea f28fac5579
Fixed << overloading. 2019-03-03 11:16:23 +01:00
tastytea 4fb13d1876
Removed constexpr for g++-5.
the build was successful Details
2019-02-25 14:55:01 +01:00
tastytea 25628e1d5d
Added virtual destructors to API and Easy::Entity.
the build failed Details
2019-02-25 14:36:49 +01:00
tastytea ada8f45415
Changed return tyoe for register_app[12]. 2019-02-25 12:32:19 +01:00
tastytea cbb1e18b0c
Replaced return types for get_stream, patch, post, put, del
the build failed Details
2019-02-22 12:36:03 +01:00
tastytea e034dbc299
Replaced return codes in API::http. 2019-02-22 12:03:28 +01:00
tastytea c8baf41582
Renamed macros.hpp to debug.hpp. 2019-02-22 11:35:06 +01:00
tastytea 514ae8dc63
Added new return types, replaced return types for API::get(). 2019-02-22 11:33:36 +01:00
tastytea 318221a2e6
Changed uint_fast16_t to uint16_t and uint_fast64_t to uint64_t. 2019-02-22 08:29:54 +01:00
tastytea 24687cba07
Removed deprecated code. 2019-02-22 08:23:26 +01:00
tastytea ffaf4a551a
Bugfix: Do not assume client_id, client_secret and token are hexadecimal.
the build was successful Details
2019-02-04 19:14:54 +01:00
tastytea ee82d35357
Removed const where it has no effect.
the build was successful Details
2018-12-04 11:26:28 +01:00
tastytea 5df220913b
Added API::urldecode()
the build was successful Details
2018-06-28 14:19:43 +02:00
tastytea eaff505f15
bugfix: Made sure that arrays are send as arrays when they only have 1 entry
This applies to account_ids, exclude_types, and media_ids
2018-06-14 04:10:08 +02:00
tastytea b9603587c5
Added proxy to get_stream() 2018-05-26 23:48:03 +02:00
tastytea 86a614dd61
Added proxy support 2018-05-26 22:34:31 +02:00
tastytea 897e36dc44
made urlencode() static 2018-05-09 06:27:11 +02:00
tastytea 091a27e412
added unescape_html 2018-05-09 06:09:47 +02:00
tastytea bbdcf70efd
Added support for passing exceptions 2018-04-10 10:17:46 +02:00
tastytea 844fb2c577
Replaced uint16_t with uint_fast16_t, refactoring 2018-04-02 01:47:44 +02:00
tastytea d3193c08a0
Header has to match completely in get_header() 2018-03-11 15:30:02 +01:00
tastytea 90c2941b5d
Bugfix: website in URL generated by register_app1() is now escaped. 2018-03-07 17:38:07 +01:00