merge from srs2.

pull/609/head
winlin 9 years ago
parent 266397acee
commit 61c0c168b9

@ -46,6 +46,7 @@ using namespace std;
#include <srs_kernel_consts.hpp>
#include <srs_app_server.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_protocol_utility.hpp>
int srs_api_response_jsonp(ISrsHttpResponseWriter* w, string callback, string data)
{

@ -345,12 +345,6 @@ int SrsHttpResponseReader::read(char* data, int nb_data, int* nb_read)
return ret;
}
// for some server, content-length is -1, while not chunked, directly read
// everything as body.
if (owner->content_length() == -1 && !owner->is_chunked()) {
return read_specified(data, nb_data, nb_read);
}
// chunked encoding.
if (owner->is_chunked()) {
return read_chunked(data, nb_data, nb_read);

Loading…
Cancel
Save