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 194 by Douglas Thrift, 2004-08-27T01:21:18-07:00 vs.
Revision 195 by Douglas Thrift, 2004-08-27T15:20:14-07:00

# Line 101 | Line 101 | void FeepingCreaturism::select(const std
101                  cout << "Content-Type: text/html; charset=UTF-8\r\n\r\n" << selection
102                          << "\r\n";
103          }
104 <        else cout << "Status: 404\r\n\r\n";
104 >        else
105 >        {
106 >                cout << "Status: 404\r\nContent-Type: text/html; charset=ISO-8859-1\r\n"
107 >                        << "\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n"
108 >                        << "<html><head>\n<title>404 Not Found</title>\n</head><body>\n"
109 >                        << "<h1>Not Found</h1>\n<p>The requested URL "
110 >                        << env.get("PATH_INFO") << " was not found on this server.</p>\n"
111 >                        << "<hr />\n" << env.get("SERVER_SIGNATURE") << "</body></html>\n";
112 >        }
113   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines