/[monit]/monit/protocols/http.c
ViewVC logotype

Diff of /monit/protocols/http.c

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

revision 1.38 by hauk, Tue Jan 25 04:42:36 2005 UTC revision 1.39 by hauk, Tue Jan 25 08:54:31 2005 UTC
# Line 170  static int check_request(Socket_T s, Por Line 170  static int check_request(Socket_T s, Por
170                        
171    case SC_MOVED_TEMPORARILY:    case SC_MOVED_TEMPORARILY:
172      if(!do_redirect(&H)) {      if(!do_redirect(&H)) {
173        log("HTTP warning: cannot follow redirect\n");        DEBUG("HTTP warning: cannot follow redirect\n");
174        /* The server did respond so this is not strictly an error, but        /* The server did respond so this is not strictly an error, but
175           it's probably an error to continue from here */           it's probably an error to continue from here */
176        return TRUE;        return TRUE;
# Line 403  static int do_redirect(Http_T *H) { Line 403  static int do_redirect(Http_T *H) {
403      return FALSE;      return FALSE;
404    }    }
405    
406    if(! get_response(H->s, &(*H))) {    if(! get_response(H->s, H)) {
407      return FALSE;      return FALSE;
408    }    }
409    
# Line 413  static int do_redirect(Http_T *H) { Line 413  static int do_redirect(Http_T *H) {
413      break;      break;
414    
415    case SC_MOVED_TEMPORARILY:    case SC_MOVED_TEMPORARILY:
416      if(!do_redirect(&(*H))) {      if(!do_redirect(H)) {
417        return FALSE;        return FALSE;
418      }      }
419      break;      break;

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26