ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/thttpd/libhttpd.c
(Generate patch)

Comparing thttpd/libhttpd.c (file contents):
Revision 1.1.4.4 by root, Mon Jul 2 18:50:02 2001 UTC vs.
Revision 1.1.4.5 by root, Mon Jul 2 18:52:37 2001 UTC

825void 825void
826httpd_send_err_blocked( httpd_conn* hc ) 826httpd_send_err_blocked( httpd_conn* hc )
827 { 827 {
828 char *protocol = hc->protocol; 828 char *protocol = hc->protocol;
829 829
830#ifdef ERR_DIR
831 char filename[1000];
832#endif
833
830 hc->protocol = "HTTP/1.0"; 834 hc->protocol = "HTTP/1.0";
835
831#ifdef ERR_DIR 836#ifdef ERR_DIR
832
833 char filename[1000];
834
835 /* Try virtual host error page. */ 837 /* Try virtual host error page. */
836 if ( hc->hs->vhost && hc->hostdir[0] != '\0' ) 838 if ( hc->hs->vhost && hc->hostdir[0] != '\0' )
837 { 839 {
838 (void) my_snprintf( filename, sizeof(filename), 840 (void) my_snprintf( filename, sizeof(filename),
839 "%s/%s/err403blocked.html", hc->hostdir, ERR_DIR ); 841 "%s/%s/err403blocked.html", hc->hostdir, ERR_DIR );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines