Fixed typo for http admin tests
@@ -44,14 +44,14 @@ struct activator {
};
//Local function prototypes
-int alias_test_post(void *handle, struct mg_connection *connection, const char *path, const char *data, size_t length);
+int alias_test_put(void *handle, struct mg_connection *connection, const char *path, const char *data, size_t length);
int websocket_data_echo(struct mg_connection *connection, int op_code, char *data, size_t length, void *handle);
celix_status_t bnd_start(struct activator *act, celix_bundle_context_t *ctx) {
celix_properties_t *props = celix_properties_create();
celix_properties_set(props, HTTP_ADMIN_URI, "/alias");
act->httpSvc.handle = act;
- act->httpSvc.doPut = alias_test_post;
+ act->httpSvc.doPut = alias_test_put;
act->httpSvcId = celix_bundleContext_registerService(ctx, &act->httpSvc, HTTP_ADMIN_SERVICE_NAME, props);
celix_properties_t *props2 = celix_properties_create();
@@ -84,7 +84,7 @@ celix_status_t bnd_stop(struct activator *act, celix_bundle_context_t *ctx) {
CELIX_GEN_BUNDLE_ACTIVATOR(struct activator, bnd_start, bnd_stop);
-int alias_test_post(void *handle __attribute__((unused)), struct mg_connection *connection, const char *path __attribute__((unused)), const char *data, size_t length) {
+int alias_test_put(void *handle __attribute__((unused)), struct mg_connection *connection, const char *path __attribute__((unused)), const char *data, size_t length) {
//If data received, echo the data for the test case
if(length > 0 && data != NULL) {
const char *mime_type = mg_get_header(connection, "Content-Type");
