martin      99/02/07 13:24:59

  Modified:    src/main http_protocol.c
  Log:
  For the proxy changes to work in a sensible manner, at least the
  HTTP_BAD_GATEWAY status code needs to be made "error-notes" aware.
  
  Revision  Changes    Path
  1.255     +3 -0      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.254
  retrieving revision 1.255
  diff -u -r1.254 -r1.255
  --- http_protocol.c   1999/01/27 12:16:01     1.254
  +++ http_protocol.c   1999/02/07 21:24:57     1.255
  @@ -2415,6 +2415,9 @@
        case BAD_GATEWAY:
            ap_bputs("The proxy server received an invalid\015\012", fd);
            ap_bputs("response from an upstream server.<P>\015\012", fd);
  +         if ((error_notes = ap_table_get(r->notes, "error-notes")) != NULL) {
  +             ap_bvputs(fd, error_notes, "<P>\n", NULL);
  +         }
            break;
        case VARIANT_ALSO_VARIES:
            ap_bvputs(fd, "A variant for the requested resource\n<PRE>\n",
  
  
  

Reply via email to