/[jscoverage]/trunk/jscoverage-server.c
ViewVC logotype

Diff of /trunk/jscoverage-server.c

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

revision 478 by siliconforks, Thu Oct 8 20:34:59 2009 UTC revision 480 by siliconforks, Thu Oct 8 20:53:51 2009 UTC
# Line 398  Line 398 
398    }    }
399  }  }
400    
401  static bool should_instrument_request(HTTPExchange * exchange) {  static bool should_instrument_request(HTTPExchange * exchange, const char * uri) {
402    if (! is_javascript(exchange)) {    if (! is_javascript(exchange)) {
403      return false;      return false;
404    }    }
405    
406    if (is_no_instrument(HTTPExchange_get_request_uri(exchange))) {    if (is_no_instrument(uri)) {
407      return false;      return false;
408    }    }
409    
# Line 865  Line 865 
865    
866    HTTPExchange_set_status_code(client_exchange, HTTPExchange_get_status_code(server_exchange));    HTTPExchange_set_status_code(client_exchange, HTTPExchange_get_status_code(server_exchange));
867    
868    if (HTTPExchange_response_has_body(server_exchange) && should_instrument_request(server_exchange)) {    if (HTTPExchange_response_has_body(server_exchange) && should_instrument_request(server_exchange, HTTPExchange_get_request_uri(client_exchange))) {
869      /* needs instrumentation */      /* needs instrumentation */
870      Stream * input_stream = Stream_new(0);      Stream * input_stream = Stream_new(0);
871      if (HTTPExchange_read_entire_response_entity_body(server_exchange, input_stream) != 0) {      if (HTTPExchange_read_entire_response_entity_body(server_exchange, input_stream) != 0) {

Legend:
Removed from v.478  
changed lines
  Added in v.480

  ViewVC Help
Powered by ViewVC 1.1.24