* Set the content type to text/xml in XMLRPC replies.

* Fixed a compile error when using xmlrpc-c >= 1.07.

* Added various download commands for getting torrent sizes, peers,
etc.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@940 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-07-20 18:05:17 +00:00
parent 535db16850
commit 7d0be56c83
3 changed files with 32 additions and 19 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ SCgiTask::receive_write(const char* buffer, uint32_t length) {
}
// Who ever bothers to check the return value?
int headerSize = sprintf(m_buffer, "Status: 200 OK\r\nContent-Type: text/plain\r\nContent-Length: %i\r\n\r\n", length);
int headerSize = sprintf(m_buffer, "Status: 200 OK\r\nContent-Type: text/xml\r\nContent-Length: %i\r\n\r\n", length);
m_position = m_buffer;
m_bufferSize = length + headerSize;