ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/DecentralizedMedia.cpp
(Generate patch)

Comparing DecentralizedMedia/DecentralizedMedia.cpp (file contents):
Revision 474 by douglas, 2005-06-08T12:45:23-07:00 vs.
Revision 476 by douglas, 2005-06-08T13:41:10-07:00

# Line 48 | Line 48 | DecentralizedMedia::DecentralizedMedia(c
48  
49                  _foreach (const _L<ext::String>, extension, extensions)
50                  {
51 +                        if (extension != _set.Begin())
52 +                                args.InsertLast(_B("-or"));
53 +
54                          args.InsertLast(_B("-name"));
55                          args.InsertLast(_S<ios::String>() << _B("*.") << *extension);
56                  }
# Line 56 | Line 59 | DecentralizedMedia::DecentralizedMedia(c
59                  ext::String file;
60  
61                  while (ios::ReadLine(*find->GetReader(), file))
62 <                        media.Insert(file);
62 >                        /*media.Insert(file)*/;
63  
64                  find->Join();
65          }
# Line 83 | Line 86 | void DecentralizedMedia::Process(const n
86                  response.SetStatus(200);
87  
88                  _foreach (const _L<ext::String>, extension, extensions)
89 <                        response << *extension << "\r\n";
87 <
88 <                response << ios::Flush;
89 >                        response << *extension << ios::NewLineNoFlush;
90          }
91          else if (request.method_ == _B("MEDIA"))
92          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines