Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 33d95a79b3
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.377 kb
#ifdef USE_FASTCGI
#include <fcgi_stdio.h>
#else
#include <stdio.h>
#endif
#include "cgic/cgic.h"
#include "jsonptunnel.h"
/*
* Send a '400' 'Bad Request' HTTP error code and exit.
*/
void exitStatus(int status, char *msg) {
cgiHeaderContentType("text/plain");
cgiHeaderStatus(status, msg);
fprintf(cgiOut, "There was an error processing your request: %s\n", msg);
}
Jump to Line
Something went wrong with that request. Please try again.