Salvage fallback buffer from burning house

This commit is contained in:
Alex Hultman
2019-04-03 03:30:21 +02:00
parent d4bf6346df
commit 5dd1932f5f
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -221,6 +221,11 @@ private:
public:
/* We do this to prolong the validity of parsed headers by keeping only the fallback buffer alive */
std::string &&salvageFallbackBuffer() {
return std::move(fallback);
}
void *consumePostPadded(char *data, int length, void *user, fu2::unique_function<void *(void *, HttpRequest *)> &&requestHandler, fu2::unique_function<void *(void *, std::string_view, bool)> &&dataHandler, fu2::unique_function<void *(void *)> &&errorHandler) {
HttpRequest req;