ResponseAddField(r, "freeswitch-user", (box ? box : user));
ResponseAddField(r, "freeswitch-domain", domain_name);
+ ResponseStatus(r, 200);
rval = TRUE;
goto done;
}
char *domain_name, *e;
abyss_bool ret = FALSE;
+ /* Default to 500 status to avoid assert. It should be
+ overridden later if we actually handle it or if the
+ default handler in abyss handles it. */
+ ResponseStatus(r, 500);
+
if (globals.enable_websocket && !strncmp(r->requestInfo.uri, "/socket", 7)) {
// Chrome has no Authorization support yet
// https://code.google.com/p/chromium/issues/detail?id=123862
return FALSE;
}
+ /* Default to 500 status to avoid assert. It should be
+ overridden later if we actually handle it or if the
+ default handler in abyss handles it. */
+ ResponseStatus(r, 500);
+
stream.data = r;
stream.write_function = http_stream_write;
stream.raw_write_function = http_stream_raw_write;