Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
Send X-Generator header to simplify identification
Browse files Browse the repository at this point in the history
  • Loading branch information
lutoma committed May 10, 2012
1 parent 92576fd commit 06aee09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define error_errno(desc, ret) do { syslog(LOG_ERR, "Error: %s (%s)\n", desc, strerror(errno)); exit(ret); } while(0);
#define http_error(num) { FCGX_FPrintF(request->out, "\r\n\r\nError %d\n", num); }
#define http_error_c(num) { http_error(num); return; }
#define http_sendfile(file, mime) { FCGX_FPrintF(request->out, "Content-type: %s\r\nX-Accel-Redirect: /asset-send/%s\r\n\r\n", mime, file); }
#define http_sendfile(file, mime) { FCGX_FPrintF(request->out, "Content-type: %s\r\nX-Accel-Redirect: /asset-send/%s\r\nX-Generator: fastresize\r\n\r\n", mime, file); }

void handle_request(FCGX_Request* request, char* root, char* http_uri)
{
Expand Down

0 comments on commit 06aee09

Please sign in to comment.