Performance improvements and fixes as well as new high-performance sending functions in the socket library.

This commit is contained in:
Thulinma 2012-09-17 16:47:58 +02:00
parent 4140b04608
commit c95bf32fae
4 changed files with 68 additions and 36 deletions

View file

@ -110,7 +110,7 @@ void HTTP::Parser::SetHeader(std::string i, std::string v){
/// Sets header i to integer value v.
void HTTP::Parser::SetHeader(std::string i, int v){
Trim(i);
char val[128];
char val[23];//ints are never bigger than 22 chars as decimal
sprintf(val, "%i", v);
headers[i] = val;
}