ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/http.ext
(Generate patch)

Comparing deliantra/server/ext/http.ext (file contents):
Revision 1.2 by root, Tue Oct 30 17:32:47 2012 UTC vs.
Revision 1.3 by root, Tue Oct 30 17:43:16 2012 UTC

57 57
58 if ($type & 1) { 58 if ($type & 1) {
59 $self->respond ("404 type $type not served yet"); 59 $self->respond ("404 type $type not served yet");
60 } else { 60 } else {
61 if ($type == 0) { # faces 61 if ($type == 0) { # faces
62 $self->respond ("200 OK", (cf::face::get_data $idx, 1), "Content-Type: image/png\015\012"); 62 $self->respond ("200 OK", (cf::face::get_data $idx, 1), "Content-Type: image/png\015\012Cache-Control: max-age=864000\015\012");
63 } else { 63 } else {
64 $self->respond ("404 type $type not served yet"); 64 $self->respond ("404 type $type not served yet");
65 } 65 }
66 } 66 }
67 } elsif ($uri eq "/allimgs") { # for debugging 67 } elsif ($uri eq "/allimgs") { # for debugging

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines