Commit 1254a49b authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Merge branch 'hotfix/1.9.1'

parents cc732dba cdddf0e7
Pipeline #2614 passed with stages
in 2 minutes and 7 seconds
......@@ -2,9 +2,10 @@
ew2openapi Release History
#########################
* Release 1.9.0 (2018/04/20)
* Release 1.9.1 (2018/04/20)
- Add handler for classifyin HTTP CODE and manage errors to retry or not to POST message. Issue #13 (2018/04/20)
- Add parameter ApiBaseUrl in ew2openapi.d and earthworm_commonvars.d. (2018/04/20)
- Hotfix 1.9.1: Print Api Url with complete route for specific message.
* Release 1.8.5 (2018/04/19)
- Change version of hypocenter to alphabetic name. Issue #10 (2018/02/01)
......
1.9.0 - 2018-04-20
\ No newline at end of file
1.9.1 - 2018-04-20
\ No newline at end of file
......@@ -849,7 +849,6 @@ thr_ret MessageHandler( void *p )
amqp_sendstring(json_string, strlen(json_string), &reclogo, inkey, params, (flag_geojson)? MESSAGE_FORMAT_GEOJSON : MESSAGE_FORMAT_JSON);
/* CURL message */
logit("t", "URL: %s\n", params->ApiBaseUrl);
logit("t", "%s: %s\n", (flag_geojson)? "GeoJSON" : "JSON", json_string);
curl_http_code = ew2openapi_curl_sendstring(params->ApiBaseUrl, json_string, strlen(json_string), &reclogo, (flag_geojson)? MESSAGE_FORMAT_GEOJSON : MESSAGE_FORMAT_JSON);
logit("t", "HTTP CODE: %ld\n", curl_http_code);
......
......@@ -100,6 +100,7 @@ long ew2openapi_curl_sendstring(char *ApiBaseUrl, char *buf, size_t len, MSG_LOG
snprintf(apiurl, MAX_API_URL, "ew/%s/1/", api_type_ew_msg);
snprintf(url, MAX_API_URL, "%s/%s", ApiBaseUrl, apiurl);
logit("t", "URL-DATA: %s\n", url);
logit("t", "JSON-DATA: %s\n", JsonObj);
curl = curl_easy_init();
......
/* DO NOT EDIT. Automatically generated. Change file HISTORY in ew2openapi_version main directory. */
#define EW2OPENAPI_VERSION "1.9.0 - 2018-04-20"
#define EW2OPENAPI_VERSION "1.9.1 - 2018-04-20"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment