You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deps/llhttp/README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ The following callbacks can return `0` (proceed normally), `-1` (error) or `HPE_
112
112
* `on_message_complete`: Invoked when a request/response has been completedly parsed.
113
113
* `on_url_complete`: Invoked after the URL has been parsed.
114
114
* `on_method_complete`: Invoked after the HTTP method has been parsed.
115
-
* `on_protocol_complete`: Invoked after the HTTP version has been parsed.
115
+
* `on_protocol_complete`: Invoked after the protocol has been parsed.
116
116
* `on_version_complete`: Invoked after the HTTP version has been parsed.
117
117
* `on_status_complete`: Invoked after the status code has been parsed.
118
118
* `on_header_field_complete`: Invoked after a header name has been parsed.
@@ -397,6 +397,16 @@ With this flag this check is disabled.
397
397
398
398
**Enabling this flag can pose a security issue since you will be exposed to request smuggling attacks. USE WITH CAUTION!**
399
399
400
+
### `void llhttp_set_lenient_header_value_relaxed(llhttp_t* parser, int enabled)`
401
+
402
+
Enables/disables relaxed handling of control characters in header values.
403
+
404
+
Normally `llhttp` would error when header values contain characters not in the valid set (HTAB, SP, VCHAR, OBS_TEXT). With
405
+
this flag, control characters (except for NULL, CR & LF) will be accepted in header values.
406
+
407
+
This does not create any known security issue, but does allow content considered 'invalid' by
408
+
[RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#name-field-values) and so should be avoided by default.
409
+
400
410
## Build Instructions
401
411
402
412
Make sure you have [Node.js](https://nodejs.org/), npm and npx installed. Then under project directory run:
0 commit comments