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

Comparing Smersh/Daemon.cpp (file contents):
Revision 348 by Douglas Thrift, 2004-09-13T23:31:24-07:00 vs.
Revision 349 by douglas, 2004-12-16T18:15:34-08:00

# Line 43 | Line 43 | Daemon::Status Daemon::request(istream&
43  
44                  if (request[1] != method) return notImplemented;
45  
46 <                env.set("REQUEST_METHOD", method);
46 >                env.set("REQUEST_METHOD", method[0]);
47                  env.set("REQUEST_URI", request[2] + request[3]);
48  
49 <                if (!request[3].empty()) env.set("QUERY_STRING", request[3].substr(1));
49 >                if (!request[3].IsEmpty()) env.set("QUERY_STRING", request[3].Substring(1));
50  
51                  headers(sin, env);
52  
# Line 253 | Line 253 | void Daemon::headers(istream& sin, Envir
253                                  env.set("HTTP_HOST", matcher[1] + (port ? matcher[2] : ""));
254                                  env.set("SERVER_NAME", matcher[1]);
255  
256 <                                if (port) env.set("SERVER_PORT", matcher[2].substr(1));
256 >                                if (port) env.set("SERVER_PORT", matcher[2].Substring(1));
257                          }
258                  }
259                  else if (name == "Referer")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines