-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: I forgot to change the content-length when I did a replacemen…
…t, leading to timeouts
- Loading branch information
Showing
4 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
char *str_replace(const char *orig, const char *rep, const char *with); | ||
/** | ||
* Replaces occurences of one string with the next. Returns a new char* which needs to be free'd later | ||
* if max_replacements == STR_REPLACE_REPLACE_ALL, then all occurences are replaced | ||
**/ | ||
#define STR_REPLACE_REPLACE_ALL 0 | ||
char *str_replace(const char *orig, const char *rep, const char *with, unsigned int max_replacements); |