return NULL;
}
if (path == NULL || *path == '\0')
- path = "/";
+ {
+ if (!strcmp (method, "POST"))
+ {
+ error = atom_error_new ();
+ atom_error_code_set (error, 400);
+ atom_error_message_set (error, "Bad Request");
+ atom_error_set (ctx, error);
+ return NULL;
+ }
+ path = "/";
+ }
if (!strcmp (method, "GET"))
{
/* Remove the leading slash before mapping */