/[jscoverage]/tags/jscoverage-0.4/jscoverage-server.c
ViewVC logotype

Diff of /tags/jscoverage-0.4/jscoverage-server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 299 by siliconforks, Mon Oct 13 02:39:58 2008 UTC revision 312 by siliconforks, Mon Oct 13 17:52:01 2008 UTC
# Line 711  Line 711 
711        return;        return;
712      }      }
713      if (strcmp(abs_path, "/jscoverage.js") == 0) {      if (strcmp(abs_path, "/jscoverage.js") == 0) {
714        const char * s = "jscoverage_isServer = true;\n";        const char * s = "jscoverage_isServer = true;\r\n";
715        if (HTTPExchange_write_response(exchange, s, strlen(s)) != 0) {        if (HTTPExchange_write_response(exchange, s, strlen(s)) != 0) {
716          HTTPServer_log_err("Warning: error writing to client\n");          HTTPServer_log_err("Warning: error writing to client\n");
717        }        }
# Line 853  Line 853 
853      free(encoding);      free(encoding);
854      Stream_delete(input_stream);      Stream_delete(input_stream);
855      if (result == JSCOVERAGE_ERROR_ENCODING_NOT_SUPPORTED) {      if (result == JSCOVERAGE_ERROR_ENCODING_NOT_SUPPORTED) {
856        send_response(client_exchange, 502, "Encoding not supported\n");        send_response(client_exchange, 500, "Encoding not supported\n");
857        goto done;        goto done;
858      }      }
859      else if (result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE) {      else if (result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE) {
# Line 1111  Line 1111 
1111        exit(EXIT_SUCCESS);        exit(EXIT_SUCCESS);
1112      }      }
1113      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {      else if (strcmp(argv[i], "-V") == 0 || strcmp(argv[i], "--version") == 0) {
1114        printf("jscoverage-server %s\n", VERSION);        version();
       exit(EXIT_SUCCESS);  
1115      }      }
1116      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {      else if (strcmp(argv[i], "-v") == 0 || strcmp(argv[i], "--verbose") == 0) {
1117        verbose = 1;        verbose = 1;

Legend:
Removed from v.299  
changed lines
  Added in v.312

  ViewVC Help
Powered by ViewVC 1.1.24