1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/docs/compile_options.md
蒼時弦や ea81fba045
Allow configuring query string max length (#2485)
* Allow configuring query string max length

* Expand changable variable in puma_http11.c to make error messages helpful

* Add compile options document and update changelog
2020-11-18 08:07:15 -07:00

19 lines
464 B
Markdown

# Compile Options
There provide some `cflags` to change Puma's default configuration for C.
## Query String
By default, the max length of `QUERY_STRING` is `1024 * 10`. But you may want to adjust it to allow accept large queries in the GET requests.
For manual install
```
gem install puma -- --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"
```
For bundler config
```
bundle config build.puma --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"
```