Fix producing headers (so that nginx understands them)

master
Mikhail Novosyolov 3 years ago
parent 467054ed13
commit beee4d129b
  1. 7
      webserver/doskast-trigger-connect.c

@ -154,10 +154,11 @@ main(){
http_code = HTTP_OK;
fcgi_out:
cgiFree(cgi);
printf("Status: %d\n", http_code);
printf("Content-Type: text/plain; charset=utf-8\n");
printf("Content-Type: text/plain; charset=utf-8\r\n");
printf("Status: %d\r\n", http_code);
printf("\r\n", http_code);
if (http_code == HTTP_OK) {
printf("%s\n", "OK");
printf("%s\r\n", "OK");
rc = 0;
} else {
rc = 1;

Loading…
Cancel
Save