mirror of
https://github.com/Relintai/rcpp_sample_simple_data_collector_app.git
synced 2025-04-23 03:11:19 +02:00
Set json content type properly.
This commit is contained in:
parent
256f3b277e
commit
d91f9d2b88
@ -50,6 +50,7 @@ void RDNApplication::get_sensor_data(Object *instance, Request *request) {
|
||||
|
||||
json += "]";
|
||||
|
||||
request->response->setContentType("application/json");
|
||||
request->response->setBody(json);
|
||||
request->send();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user