some cleanup
This commit is contained in:
@@ -5,8 +5,8 @@ COMPONENT(Request& context)
|
||||
starter_boot(context);
|
||||
context.header["Content-Type"] = "application/json";
|
||||
context.header["Cache-Control"] = "no-cache, no-store, must-revalidate";
|
||||
if(context.call["json"].get_type_name() == "array")
|
||||
print(json_encode(context.call["json"]));
|
||||
if(context.props["json"].get_type_name() == "array")
|
||||
print(json_encode(context.props["json"]));
|
||||
else if(context.var["starter"]["json"].get_type_name() == "array")
|
||||
print(json_encode(context.var["starter"]["json"]));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user