| 63 | } |
| 64 | |
| 65 | void QHttpResponse::writeHeader(const char *field, const QString &value) |
| 66 | { |
| 67 | if (!m_finished) { |
| 68 | m_connection->write(field); |
| 69 | m_connection->write(": "); |
| 70 | m_connection->write(value.toUtf8()); |
| 71 | m_connection->write("\r\n"); |
| 72 | } else { |
| 73 | #ifdef DEBUG |
| 74 | qWarning() << "QHttpResponse::writeHeader() Cannot write headers after response has finished."; |
| 75 | #endif |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | void QHttpResponse::writeHeaders() |
| 80 | { |