#include "client.h"
#include "sink.h"
#include "cgi.h"
-#include "dcgi.h"
#include "mem.h"
#include "log.h"
#include "configuration.h"
#include "api-client.h"
#include "mime.h"
#include "printf.h"
+#include "dcgi.h"
/** @brief Infer the base URL for the web interface if it's not set
*
login_cookie = cd.cookies[n].value;
}
}
- /* Log in with the cookie if possible otherwise as guest */
- if(disorder_connect_cookie(g.client, login_cookie)) {
- disorder_cgi_error(&output, &s, "connect");
- return 0;
- }
+ disorder_cgi_login(&s, &output);
/* TODO RFC 3875 s8.2 recommendations e.g. concerning PATH_INFO */
disorder_cgi(&output, &s);
if(fclose(stdout) < 0) fatal(errno, "error closing stdout");