When adding new streams that are copies of old streams, copy the HTTP header.
[cubemap] / httpinput.cpp
index b066b24..2fe6806 100644 (file)
@@ -539,6 +539,12 @@ void HTTPInput::drop_pending_data(size_t num_bytes)
        pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);
 }
 
+void HTTPInput::add_destination(int stream_index)
+{
+       stream_indices.push_back(stream_index);
+       servers->set_header(stream_index, http_header, "");
+}
+
 InputStats HTTPInput::get_stats() const
 {
        MutexLock lock(&stats_mutex);