From 88c1166f7634acfdadc735025e2df374fd25e04e Mon Sep 17 00:00:00 2001 From: Pete Date: Thu, 2 Nov 2023 10:51:27 -0700 Subject: Add a few newer file types to httpd.suff. In particular, not serving .css as text/css was confusing to some browsers. squash --- appl/svc/httpd/httpd.suff | 3 +++ 1 file changed, 3 insertions(+) (limited to 'appl/svc/httpd') diff --git a/appl/svc/httpd/httpd.suff b/appl/svc/httpd/httpd.suff index dbc599d2..110e4726 100644 --- a/appl/svc/httpd/httpd.suff +++ b/appl/svc/httpd/httpd.suff @@ -15,6 +15,7 @@ .bcpio application x-bcpio - # [Mosaic] .bib text plain - # BibTex input .c text plain - # C program +.css text css - # CSS .c++ text plain - # C++ program .cc text plain - # [Mosaic] .cdf application x-netcdf - @@ -76,6 +77,7 @@ .rfr text plain - # refer .rgb image x-rgb - # [Mosaic] .roff application x-troff - # [Mosaic] +.rss application rss+xml - # RSS feeds .rtf application rtf - # [Mosaic] .rtx text richtext - # MIME richtext [Mosaic] .sh application x-shar - @@ -83,6 +85,7 @@ .snd audio basic - .sv4cpio application x-sv4cpio - # [Mosaic] .sv4crc application x-sv4crc - # [Mosaic] +.svg image svg+xml - # SVG images .t application x-troff - # [Mosaic] .tar application x-tar - # [Mosaic] .taz application x-tar x-compress -- cgit v1.2.3 From 46b21f56c443752954208d8b75b1a6f0154cd86a Mon Sep 17 00:00:00 2001 From: Pete Date: Thu, 2 Nov 2023 10:50:35 -0700 Subject: Fix a bug in directory listings in httpd. --- appl/svc/httpd/httpd.b | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'appl/svc/httpd') diff --git a/appl/svc/httpd/httpd.b b/appl/svc/httpd/httpd.b index db570a74..d2f5f5e5 100644 --- a/appl/svc/httpd/httpd.b +++ b/appl/svc/httpd/httpd.b @@ -506,8 +506,10 @@ senddir(g: ref Private_info,vers,uri: string, fd: ref FD, mydir: ref Dir) g.bout.puts("\n"); for(i := 0; i < n; i++){ (typ, enc) := classify(a[i]); - g.bout.puts(sys->sprint("", - myname, a[i].name, a[i].name)); + #g.bout.puts(sys->sprint("", + # myname, a[i].name, a[i].name)); + g.bout.puts(sys->sprint("", + a[i].name, a[i].name)); if(typ != nil){ if(typ.generic!=nil) g.bout.puts(sys->sprint("
%s
%s
%s%s", typ.generic)); -- cgit v1.2.3 From 483e583533c6b66ed0117a6ca16b9426f5af1b70 Mon Sep 17 00:00:00 2001 From: Pete Date: Tue, 16 Apr 2024 18:40:48 -0700 Subject: Remove the commented-out buggy lines. --- appl/svc/httpd/httpd.b | 2 -- 1 file changed, 2 deletions(-) (limited to 'appl/svc/httpd') diff --git a/appl/svc/httpd/httpd.b b/appl/svc/httpd/httpd.b index d2f5f5e5..20d48f10 100644 --- a/appl/svc/httpd/httpd.b +++ b/appl/svc/httpd/httpd.b @@ -506,8 +506,6 @@ senddir(g: ref Private_info,vers,uri: string, fd: ref FD, mydir: ref Dir) g.bout.puts("\n"); for(i := 0; i < n; i++){ (typ, enc) := classify(a[i]); - #g.bout.puts(sys->sprint("", - # myname, a[i].name, a[i].name)); g.bout.puts(sys->sprint("", a[i].name, a[i].name)); if(typ != nil){ -- cgit v1.2.3
%s
%s