Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unlocking [rest-json], when HTTP status is not 200.

  • Loading branch information...
commit 131ba84248c9696cdcf52cce79dbc167167321e5 1 parent d57a3c6
@residuum authored
View
4 Changelog.txt
@@ -1,4 +1,8 @@
Changelog
+---------
+0.7.1:
+- Unlocking [rest-json] when HTTP status is not 200.
+- Fix for segfault at json_object_put().
0.7:
- Cookie authentication, useful for CouchDB login
View
6 debian/changelog
@@ -1,3 +1,9 @@
+pd-purest-json (0.7.1) UNRELEASED; urgency=low
+
+ * Bugfixes
+
+ -- Thomas Mayer <thomas@residuum.org> Sat, 14 Apr 2012 23:50:00 +0200
+
pd-purest-json (0.7) UNRELEASED; urgency=low
* Cookie authentication, useful for CouchDB login
View
2  purest_json-meta.pd
@@ -1,6 +1,6 @@
#N canvas 15 49 200 200 10;
#N canvas 25 49 420 300 META 1;
-#X text 10 10 VERSION 0.7;
+#X text 10 10 VERSION 0.7.1;
#X text 10 25 AUTHOR thomas@residuum.org;
#X text 13 41 NAME purest_json;
#X restore 10 10 pd META;
View
2  purest_json.h
@@ -7,7 +7,7 @@
#include <json/json.h>
#include <pthread.h>
-#define LIBRARY_VERSION "0.7"
+#define LIBRARY_VERSION "0.7.1"
/* reading / writing data in HTTP requests */
typedef struct memory_struct {
View
4 rest-json.c
@@ -82,7 +82,6 @@ static void *execute_rest_thread(void *thread_args) {
SETSYMBOL(&http_status_data[1], gensym("bang"));
outlet_list(x->status_info_outlet, &s_list, 2, &http_status_data[0]);
if (result == CURLE_OK) {
- x->is_data_locked = 0;
output_json_string(out_memory.memory, x->x_ob.ob_outlet, x->done_outlet);
/* Free memory */
if (out_memory.memory) {
@@ -90,7 +89,6 @@ static void *execute_rest_thread(void *thread_args) {
}
free((void *)result);
} else {
- x->is_data_locked = 0;
error("Error while performing request: %s", curl_easy_strerror(result));
}
} else {
@@ -101,8 +99,8 @@ static void *execute_rest_thread(void *thread_args) {
curl_easy_cleanup(curl_handle);
} else {
error("Cannot init curl.");
- x->is_data_locked = 0;
}
+ x->is_data_locked = 0;
return NULL;
}
Please sign in to comment.
Something went wrong with that request. Please try again.