diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 4eb2e9c..5209286 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -121,7 +121,7 @@ static int accessHandlerCallback(void *cls, void ** ptr) { /* Unexpected method */ - if (0 != strcmp(method, "GET")) + if (0 != strcmp(method, "GET") && 0 != strcmp(method, "POST")) return MHD_NO; /* The first time only the headers are valid, do not respond in the first round... */ @@ -581,7 +581,7 @@ int main(int argc, char **argv) { "Size: " + kiwix::beautifyInteger(atoi(currentBook.size.c_str())) + " MB (" + kiwix::beautifyInteger(atoi(currentBook.articleCount.c_str())) + " articles, " + kiwix::beautifyInteger(atoi(currentBook.mediaCount.c_str())) + " medias) \ Created: " + currentBook.date + " \ Author: " + currentBook.creator + "Language: " + currentBook.language + " \ - Publisher: " + (currentBook.publisher.empty() ? "unknown" : currentBook.publisher ) + " \ + Publisher: " + (currentBook.publisher.empty() ? "unknown" : currentBook.publisher ) + "
\ \ \ ";