Performance improvements and fixes as well as new high-performance sending functions in the socket library.
This commit is contained in:
parent
4140b04608
commit
c95bf32fae
4 changed files with 68 additions and 36 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue