ravinet/mahimahi — pull request #39 by ravinet (2013-12-02 15:43:10+00:00)
Title: Smallissues

Not sure if these changes really help, but they came about as I was going through the chunked parser:

1) fixed spaces so it is consistent with other code in the repo (and with itself)
2) When using string::substr from a position in the string until the end of the string, we can simply put the initial position without the substring length (it will go until the end of the string since count is set to npos by default).
3) In ChunkedBodyParser::compute_ack_size, loc represents the position we find needle in the haystack. Then, we check whether loc != string::npos which means that we do find the needle in the haystack. So, I modified the comment just below to state that we found the needle rather than saying "Can't find it".

Please let me know if any of this is wrong!