2020-11-18 23:07:15 +08:00
|
|
|
# Compile Options
|
|
|
|
|
2020-12-01 14:47:24 +01:00
|
|
|
There are some `cflags` provided to change Puma's default configuration for its C extension.
|
2020-11-18 23:07:15 +08:00
|
|
|
|
2020-12-01 14:47:24 +01:00
|
|
|
## Query String, `PUMA_QUERY_STRING_MAX_LENGTH`
|
2020-11-18 23:07:15 +08:00
|
|
|
|
2020-12-01 14:47:24 +01: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 23:07:15 +08:00
|
|
|
|
2020-12-01 14:47:24 +01:00
|
|
|
For manual install, pass the `PUMA_QUERY_STRING_MAX_LENGTH` option like this:
|
2020-11-18 23:07:15 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
gem install puma -- --with-cflags="-D PUMA_QUERY_STRING_MAX_LENGTH=64000"
|
|
|
|
```
|
|
|
|
|
2020-12-01 14:47:24 +01:00
|
|
|
For Bundler, use its configuration system:
|
2020-11-18 23:07:15 +08:00
|
|
|
|
|
|
|
```
|
2020-12-14 21:23:30 +00:00
|
|
|
bundle config build.puma "--with-cflags='-D PUMA_QUERY_STRING_MAX_LENGTH=64000'"
|
2020-11-18 23:07:15 +08:00
|
|
|
```
|