Added todo in HTTP::Parser, changed version to 2.0.0
This commit is contained in:
parent
c3abf0682d
commit
24a3bcd8db
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@ AM_CPPFLAGS = $(global_CFLAGS)
|
||||||
lib_LTLIBRARIES=libmist-1.0.la
|
lib_LTLIBRARIES=libmist-1.0.la
|
||||||
libmist_1_0_la_SOURCES=amf.h amf.cpp auth.h auth.cpp base64.h base64.cpp config.h config.cpp crypto.h crypto.cpp dtsc.h dtsc.cpp flv_tag.h flv_tag.cpp http_parser.h http_parser.cpp json.h json.cpp procs.h procs.cpp rtmpchunks.h rtmpchunks.cpp socket.h socket.cpp mp4.h mp4.cpp ftp.h ftp.cpp filesystem.h filesystem.cpp stream.h stream.cpp
|
libmist_1_0_la_SOURCES=amf.h amf.cpp auth.h auth.cpp base64.h base64.cpp config.h config.cpp crypto.h crypto.cpp dtsc.h dtsc.cpp flv_tag.h flv_tag.cpp http_parser.h http_parser.cpp json.h json.cpp procs.h procs.cpp rtmpchunks.h rtmpchunks.cpp socket.h socket.cpp mp4.h mp4.cpp ftp.h ftp.cpp filesystem.h filesystem.cpp stream.h stream.cpp
|
||||||
libmist_1_0_la_LIBADD=-lssl -lcrypto
|
libmist_1_0_la_LIBADD=-lssl -lcrypto
|
||||||
libmist_1_0_la_LDFLAGS = -version-info 1:0:0
|
libmist_1_0_la_LDFLAGS = -version-info 2:0:0
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = mist-1.0.pc
|
pkgconfig_DATA = mist-1.0.pc
|
||||||
|
|
|
@ -141,7 +141,8 @@ bool HTTP::Parser::Read(std::string & strbuf){
|
||||||
bool HTTP::Parser::parse(std::string & HTTPbuffer){
|
bool HTTP::Parser::parse(std::string & HTTPbuffer){
|
||||||
size_t f;
|
size_t f;
|
||||||
std::string tmpA, tmpB, tmpC;
|
std::string tmpA, tmpB, tmpC;
|
||||||
while (HTTPbuffer != ""){
|
/// \todo Make this not resize HTTPbuffer in parts, but read all at once and then remove the entire request, like doxygen claims it does.
|
||||||
|
while (!HTTPbuffer.empty()){
|
||||||
if (!seenHeaders){
|
if (!seenHeaders){
|
||||||
f = HTTPbuffer.find('\n');
|
f = HTTPbuffer.find('\n');
|
||||||
if (f == std::string::npos) return false;
|
if (f == std::string::npos) return false;
|
||||||
|
@ -190,7 +191,7 @@ bool HTTP::Parser::parse(std::string & HTTPbuffer){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false; //we should never get here...
|
return false; //empty input
|
||||||
}//HTTPReader::parse
|
}//HTTPReader::parse
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
Loading…
Add table
Reference in a new issue