part II of rewriting
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@635 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -22,7 +22,7 @@ class PostParser : public HttpSimpleParser
|
||||
{
|
||||
|
||||
FCGX_Stream * in;
|
||||
PostTab & post_tab;
|
||||
PostTab * post_tab;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -35,7 +35,7 @@ protected:
|
||||
|
||||
virtual void Parameter(std::string & name, std::string & value)
|
||||
{
|
||||
std::pair<PostTab::iterator, bool> res = post_tab.insert( std::make_pair(name, value) );
|
||||
std::pair<PostTab::iterator, bool> res = post_tab->insert( std::make_pair(name, value) );
|
||||
|
||||
log << log2 << "Method POST, name: \"" << name << "\", value: \"" << value << "\"";
|
||||
|
||||
@@ -48,8 +48,12 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
PostParser(FCGX_Stream * in_, PostTab & post_tab_) : in(in_), post_tab(post_tab_)
|
||||
void Parse(FCGX_Stream * in_, PostTab & post_tab_)
|
||||
{
|
||||
in = in_;
|
||||
post_tab = &post_tab_;
|
||||
|
||||
HttpSimpleParser::Parse();
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user