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

Comparing deliantra/server/ext/tcp_http.ext (file contents):
Revision 1.3 by root, Tue Nov 6 21:50:36 2012 UTC vs.
Revision 1.4 by root, Tue Nov 6 23:33:15 2012 UTC

57 $uri =~ s%^http://[^/]*%%i; # just in case 57 $uri =~ s%^http://[^/]*%%i; # just in case
58 58
59 cf::debug "HTTP GET: $self->{id} $uri"; 59 cf::debug "HTTP GET: $self->{id} $uri";
60 60
61 if ($uri =~ m%^/([0-9a-f]+)(M?)$%) { # faces 61 if ($uri =~ m%^/([0-9a-f]+)(M?)$%) { # faces
62 my $want_meta = $1; 62 my $want_meta = $2;
63 my $idx = $cf::FACEHASH{pack "H*", $2}; 63 my $idx = $cf::FACEHASH{pack "H*", $1};
64 64
65 $idx 65 $idx
66 or do { $self->respond ("404 illegal face name"), next }; 66 or do { $self->respond ("404 illegal face name"), next };
67 67
68 if ($req =~ /if-none-match/i) { # dirtiest hack evar 68 if ($req =~ /if-none-match/i) { # dirtiest hack evar

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines