m_headers[name] = value ? value : "";\r
}\r
\r
- void setContentType(const char* type) {\r
- setResponseHeader("Content-Type", type);\r
- }\r
- \r
- void setCookie(const char* name, const char* value) {\r
- m_headers["Set-Cookie"] = string(name) + "=" + (value ? value : "");\r
- }\r
- \r
// The amount of error checking missing from this is incredible, but as long\r
// as the test data isn't unexpected or malformed, it should work.\r
\r