Skip to content

Tags: baijunjs/cpp-httplib

Tags

v0.7.14

Toggle v0.7.14's commit message

v0.7.13

Toggle v0.7.13's commit message
Fix problem with invalid range

v0.7.12

Toggle v0.7.12's commit message

v0.7.11

Toggle v0.7.11's commit message
Fixed compiler error for old compiler.

v0.7.10

Toggle v0.7.10's commit message

v0.7.9

Toggle v0.7.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add `cache_control` parameter to `set_mount_point` (yhirose#688)

* Add `cache_control` parameter to `set_mount_point`

Specifies the Cache-Control header value to return when specified. For example:

```
svr.set_mount_point("/assets", "public/assets", "public, max-age=604800, immutable");
```

* Add default for cache_control

Default to "no-cache", which is implicitly what is happening today.

* Change set_mount_point to accept Headers

* Don't use C++17 destructuring

v0.7.8

Toggle v0.7.8's commit message

v0.7.7

Toggle v0.7.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add compression buffer size customization (yhirose#644)

* add compression buffer size customization and small brotli refactor

* allocat brotli buffer once

* add init to brotli decoder buffer

v0.7.6

Toggle v0.7.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix server crash caused due to regex complexity while matching header…

…s. (yhirose#632)

* Fix parsing to parse query string with single space char.

When passed ' ' as a query string, the server crashes cause of illegal memory access done in httplib::detail::split. Have added checks to make sure the split function has a valid string with length > 0.

* Fix parsing to parse query string with single space char.

* Fix server crash caused due to regex complexity while matching headers.

While parsing content-type header in multipart form request the server crashes due to the exhaustion of max iterations performed while matching the input string with content-type regex.
Have removed the regex which might use backtracking while matching and replaced it with manual string processing. Have added tests as well.

* Remove magic number

Co-authored-by: Ivan Fefer <fefer.ivan@gmail.com>

Co-authored-by: yhirose <yhirose@users.noreply.github.com>
Co-authored-by: Ivan Fefer <fefer.ivan@gmail.com>

v0.7.5

Toggle v0.7.5's commit message
Update README