[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9819: send a reponse header for POST
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9819: send a reponse header for POST too. |
Date: |
Sun, 30 Nov 2008 19:32:42 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9819
committer: address@hidden
branch nick: rtmp
timestamp: Sun 2008-11-30 19:32:42 -0700
message:
send a reponse header for POST too.
modified:
libnet/http.cpp
=== modified file 'libnet/http.cpp'
--- a/libnet/http.cpp 2008-12-01 01:19:12 +0000
+++ b/libnet/http.cpp 2008-12-01 02:32:42 +0000
@@ -304,6 +304,17 @@
extractCommand(*buf);
gnash::Network::byte_t *data = processHeaderFields(*buf);
+ // Send the reply
+ amf::Buffer &reply = formatHeader(_filetype,_filesize, HTTP::OK);
+ writeNet(fd, reply);
+
+ size_t length = strtol(getField("content-length").c_str(), NULL, 0);
+
+ string url = _docroot + _filespec;
+ DiskStream ds(url, data, length);
+ ds.writeToDisk();
+ ds.close();
+
return true;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9819: send a reponse header for POST too.,
rob <=