Skip to content

Releases: Southclaws/pawn-requests

0.10.0

25 Nov 19:58
Compare
Choose a tag to compare

(2022-11-25)

Bug Fixes

  • processing requests would fail due to no matching amx instance when other amx instances where used (7f81a8a)
  • renamed GetObject to GetObjectAlt internally to avoid msvc macro interference (630ed5a)

0.9.0

19 Nov 05:56
Compare
Choose a tag to compare

(2022-11-19)

Bug Fixes

  • boost: make sure we include boost directories to ensure build (9868dd8)
  • ssl: specify SSL paths for both requests/websockets for unix systems (32f2829)

0.8.7

12 Jan 18:56
Compare
Choose a tag to compare

Fixes a bug with Request randomly failing due to uninitialised memory. Thanks to @ziggi for the fix!

0.8.6

05 Jan 19:43
Compare
Choose a tag to compare

Fixed a bug that caused callbacks to duplicate when multiple AMX instances were present (such as Filterscripts).

0.8.5

12 Dec 19:29
Compare
Choose a tag to compare

Rebuilt with the latest version of cpprestsdk - this fixes #17

0.8.4

16 Oct 19:12
Compare
Choose a tag to compare

Added a missing const, thanks @AGraber!

0.8.3

08 Jul 13:20
Compare
Choose a tag to compare

Fixed some minor bugs with garbage collection. Using JsonToggleGC would be ineffective if JsonGet* functions were used on a node.

0.8.2

20 Jun 11:58
Compare
Choose a tag to compare

Fixed content type not being set on JSON requests with no body.

RequestJSON with POST will now correctly set Content-Type: application/json even if no JSON body is set.

0.8.1

20 Jun 11:25
Compare
Choose a tag to compare

Fixed return values for missing keys on JsonGet* functions. Calling JsonGet* with a key that does not exist will now return a non-zero error code. This release also removes the ERROR: prints caused by doing this.

0.8.0

20 Jun 10:24
Compare
Choose a tag to compare

Implemented JsonSet* functions for directly assigning keys to values. This can be used as an alternative to the Json* object builder API for explicitly setting keys to values of all types. This combined with JsonToggleGC means JSON objects can be modified across function calls and via callbacks.

Example:

new Node:n = JsonObject();
JsonToggleGC(n, false);
mutateJson(n);
JsonToggleGC(n, true);```
// n now contains key1 and key2

// in another part of code
mutateJson(Node:n) {
    JsonSetString(n, "key1", "value1");
    JsonSetObject(n, "key2", JsonObject(
        "key3", JsonString("value2")
    ));
}