diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2012-01-15 23:45:31 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-01-16 00:45:05 +0400 |
commit | 8a98c2f1d81cabb6594dc388789d60d2f3f67c09 (patch) | |
tree | 2c07a8026b7e28255e399d2f04707f2f4eaad949 /doc | |
parent | 93465d30511db82d0f759905d0cde52c8d5ea53e (diff) |
http, querystring: added limits to prevent DoS
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.markdown | 6 | ||||
-rw-r--r-- | doc/api/querystring.markdown | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 35978986723..365f2006044 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -143,6 +143,12 @@ Stops the server from accepting new connections. See [net.Server.close()](net.html#server.close). +### server.maxHeadersCount + +Limits maximum incoming headers count, equal to 1000 by default. If set to 0 - +no limit will be applied. + + ## http.ServerRequest This object is created internally by a HTTP server -- not by diff --git a/doc/api/querystring.markdown b/doc/api/querystring.markdown index 25741804dce..1dc9f89f3ea 100644 --- a/doc/api/querystring.markdown +++ b/doc/api/querystring.markdown @@ -19,12 +19,15 @@ Example: // returns 'foo:bar;baz:qux' -### querystring.parse(str, [sep], [eq]) +### querystring.parse(str, [sep], [eq], [options]) Deserialize a query string to an object. Optionally override the default separator (`'&'`) and assignment (`'='`) characters. +Options object may contain `maxKeys` property (equal to 1000 by default), it'll +be used to limit processed keys. Set it to 0 to remove key count limitation. + Example: querystring.parse('foo=bar&baz=qux&baz=quux&corge') |