- The redirectStateData handlers requires the HelperReply::Okay helper reply
result code else will drop the helper reply, but we are always pass to them
the HelperReply::Unknown reply result code
- The NotePairs are not support "=" operator. This patch replaces a such command
using the NotePairs::append member, and also adds unimplemented private
= operator and copy constructor to prevent developers from using it.
MEMPROXY_CLASS(Entry);
};
+ NotePairs(){}
~NotePairs();
/**
bool empty() const {return entries.empty();}
Vector<NotePairs::Entry *> entries; ///< The key/value pair entries
+
+private:
+ NotePairs &operator = (NotePairs const &); // Not implemented
+ NotePairs(NotePairs const &); // Not implemented
};
MEMPROXY_CLASS_INLINE(NotePairs::Entry);
const Http::StatusCode status = static_cast<Http::StatusCode>(atoi(result));
HelperReply newReply;
- newReply.result = reply.result;
- newReply.notes = reply.notes;
+ // BACKWARD COMPATIBILITY 2012-06-15:
+ // We got HelperReply::Unknown reply result but new
+ // redirectStateData handlers require HelperReply::Okay,
+ // else will drop the helper reply
+ newReply.result = HelperReply::Okay;
+ newReply.notes.append(&reply.notes);
if (status == Http::scMovedPermanently
|| status == Http::scMovedTemporarily