2020-11-18 10:07:15 -05:00
|
|
|
# Compile Options
|
|
|
|
|
2020-12-01 08:47:24 -05:00
|
|
|
There are some `cflags` provided to change Puma's default configuration for its C extension.
|
2020-11-18 10:07:15 -05:00
|
|
|
|
2020-12-01 08:47:24 -05:00
|
|
|
## Query String, `PUMA_QUERY_STRING_MAX_LENGTH`
|
2020-11-18 10:07:15 -05:00
|
|
|
|
2020-12-01 08:47:24 -05:00
|
|
|
By default, the max length of `QUERY_STRING` is `1024 * 10`. But you may want to adjust it to allow accept larger queries in GET requests.
|
2020-11-18 10:07:15 -05:00
|
|
|
|
2020-12-01 08:47:24 -05:00
|
|
|
For manual install, pass the `PUMA_QUERY_STRING_MAX_LENGTH` option like this:
|
2020-11-18 10:07:15 -05:00
|
|
|
|
|
|
|
```
|
|
|
|
gem install puma -- --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"
|
|
|
|
```
|
|
|
|
|
2020-12-01 08:47:24 -05:00
|
|
|
For Bundler, use its configuration system:
|
2020-11-18 10:07:15 -05:00
|
|
|
|
|
|
|
```
|
|
|
|
bundle config build.puma --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"
|
|
|
|
```
|