diff options
| -rw-r--r-- | server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -80,6 +80,12 @@ handle_request(char** env, const Configuration&, string_view body, ostream& out) | |||
| 80 | out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; | 80 | out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; |
| 81 | out << "<h1>Verbindung erfolgreich verarbeitet!</h1>"; | 81 | out << "<h1>Verbindung erfolgreich verarbeitet!</h1>"; |
| 82 | out << "<p>Methode: " << (methode ? methode : "?") << ", Body: " << body.size() << " Bytes</p>"; | 82 | out << "<p>Methode: " << (methode ? methode : "?") << ", Body: " << body.size() << " Bytes</p>"; |
| 83 | |||
| 84 | out << "<pre>"; | ||
| 85 | for (int i=0; env[i] != NULL; ++i) { | ||
| 86 | out << env[i] << '\n'; | ||
| 87 | } | ||
| 88 | out << "</pre>"; | ||
| 83 | } | 89 | } |
| 84 | 90 | ||
| 85 | void | 91 | void |
