Skip to content

Commit

Permalink
Merge pull request ggerganov#6 from anon998/fix-multibyte
Browse files Browse the repository at this point in the history
Buffer incomplete multibyte characters + other stuff.
  • Loading branch information
digiwombat authored May 31, 2023
2 parents 9f2424a + 3edaf6b commit 96fa480
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 204 deletions.
3 changes: 3 additions & 0 deletions examples/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ set(TARGET server)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(${TARGET} server.cpp json.hpp httplib.h)
target_compile_definitions(${TARGET} PRIVATE
# single thread
CPPHTTPLIB_THREAD_POOL_COUNT=1
# crash the server in the debug mode, otherwise send http 500 error
$<$<CONFIG:Debug>:
CPPHTTPLIB_NO_EXCEPTIONS=1
>
Expand Down
Loading

0 comments on commit 96fa480

Please sign in to comment.