-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bf96ea
commit ca4ed99
Showing
18 changed files
with
226 additions
and
386 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 +1,12 @@ | ||
commit 2678fcf0bc7a645a4043f5c194dfc75da35ab072 | ||
Author: Miro Stauder <[email protected]> | ||
Date: Tue Jan 24 15:05:11 2023 +0000 | ||
|
||
webserver.patch | ||
|
||
diff --git a/src/webserver.cpp b/src/webserver.cpp | ||
index 38542f2..0ae69dc 100644 | ||
--- a/src/webserver.cpp | ||
+++ b/src/webserver.cpp | ||
@@ -441,7 +441,7 @@ MHD_Result policy_callback (void *cls, const struct sockaddr* addr, socklen_t ad | ||
void* uri_log(void* cls, const char* uri) | ||
{ | ||
struct details::modded_request* mr = new details::modded_request(); | ||
- mr->complete_uri = new string(uri); | ||
+ mr->complete_uri = new string(uri == NULL ? "" : uri); | ||
mr->second = false; | ||
return ((void*)mr); | ||
diff -upr libhttpserver.clean/src/webserver.cpp libhttpserver/src/webserver.cpp | ||
--- libhttpserver.clean/src/webserver.cpp 2023-06-16 03:49:56.000000000 +0000 | ||
+++ libhttpserver/src/webserver.cpp 2023-10-17 10:11:18.350231611 +0000 | ||
@@ -420,7 +420,7 @@ void* uri_log(void* cls, const char* uri | ||
std::ignore = con; | ||
|
||
auto mr = std::make_unique<details::modded_request>(); | ||
- mr->complete_uri = std::make_unique<string>(uri); | ||
+ mr->complete_uri = std::make_unique<string>(uri == NULL ? "" : uri); | ||
return reinterpret_cast<void*>(mr.release()); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,17 +1,10 @@ | ||
commit 3dab3a696e61c341029ad459608f2626e6e5547f | ||
Author: Miro Stauder <[email protected]> | ||
Date: Mon Jan 9 12:06:29 2023 +0000 | ||
|
||
final_val_post_process.patch | ||
|
||
diff --git a/src/webserver.cpp b/src/webserver.cpp | ||
index 38542f2..e6ef554 100644 | ||
--- a/src/webserver.cpp | ||
+++ b/src/webserver.cpp | ||
@@ -674,6 +674,14 @@ MHD_Result webserver::finalize_answer( | ||
{ | ||
if(hrm->is_allowed(method)) | ||
{ | ||
diff -upr libhttpserver.clean/src/webserver.cpp libhttpserver/src/webserver.cpp | ||
--- libhttpserver.clean/src/webserver.cpp 2023-06-16 03:49:56.000000000 +0000 | ||
+++ libhttpserver/src/webserver.cpp 2023-10-17 10:03:00.696612945 +0000 | ||
@@ -676,6 +676,14 @@ MHD_Result webserver::finalize_answer(MH | ||
if (found) { | ||
try { | ||
if (hrm->is_allowed(method)) { | ||
+ // NOTE: Here 'MHD_destroy_post_processor' is required for performing a final 'post_process' | ||
+ // of the 'URL Encode'. This ensures ensures the processing of final key without value left | ||
+ // at the end of the buffer. See function internal doc at 'postprocessor.c'. | ||
|
@@ -20,6 +13,6 @@ index 38542f2..e6ef554 100644 | |
+ mr->pp = NULL; | ||
+ } | ||
+ | ||
mr->dhrs = ((hrm)->*(mr->callback))(*mr->dhr); //copy in memory (move in case) | ||
if (mr->dhrs->get_response_code() == -1) | ||
{ | ||
mr->dhrs = ((hrm)->*(mr->callback))(*mr->dhr); // copy in memory (move in case) | ||
if (mr->dhrs.get() == nullptr || mr->dhrs->get_response_code() == -1) { | ||
mr->dhrs = internal_error_page(mr); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
libhttpserver-0.18.2 | ||
libhttpserver-0.19.0 |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.