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

Comparing FeepingCreaturism/FeepingCreaturism.cpp (file contents):
Revision 375 by douglas, 2004-12-22T18:12:44-08:00 vs.
Revision 378 by douglas, 2004-12-22T18:47:09-08:00

# Line 91 | Line 91 | void FeepingCreaturism::parse()
91  
92          if (env.get("REQUEST_METHOD") == "POST")
93          {
94 <                std::streamsize length(lexical_cast<std::streamsize>(env.get("CONTENT_TYPE")));
94 >                std::streamsize length(lexical_cast<std::streamsize>(env.get("CONTENT_LENGTH")));
95                  char* content(new char[length]);
96  
97 <                api::Cin.Read(content, length);
97 >                api::Cin.ReadFully(content, length);
98                  query.write(content, length);
99  
100                  delete [] content;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines