TechnikEmpire / HttpFilteringEngine

Transparent filtering TLS proxy.
Mozilla Public License 2.0
60 stars 33 forks source link

Remove BaseHttpTransaction::SetPayload(...) code duplication. #46

Closed TechnikEmpire closed 7 years ago

TechnikEmpire commented 8 years ago

BaseHttpTransaction::SetPayload(...) overloads are almost exact duplicates. This needs to be cleaned up. The code duplication comes from a lack of one or more member functions which are needed to verify the payload body contents (looking for and adding, if needed, terminating CRLFs), and adjust payload size members etc. If such function(s) were added to BaseHttpTransaction, this duplication could be entirely removed.