summaryrefslogtreecommitdiff
path: root/deps/llhttp/src/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/llhttp/src/api.c')
-rw-r--r--deps/llhttp/src/api.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/llhttp/src/api.c b/deps/llhttp/src/api.c
index 45227b35af..6f7246546d 100644
--- a/deps/llhttp/src/api.c
+++ b/deps/llhttp/src/api.c
@@ -127,6 +127,15 @@ const char* llhttp_method_name(llhttp_method_t method) {
}
+void llhttp_set_lenient(llhttp_t* parser, int enabled) {
+ if (enabled) {
+ parser->flags |= F_LENIENT;
+ } else {
+ parser->flags &= ~F_LENIENT;
+ }
+}
+
+
/* Callbacks */