7 Commits

Author SHA1 Message Date
Jose Quintana
57025e3321 chore: update dependencies 23-10-2025 & MSRV to Rust 1.85.0 (2024 Edition) (#572)
* fix: update dependencies 23-10-2025
* chore: update dependencies 26-10-2025
* chore: update dependencies 26.10.2025 & bump up MSRV to 1.85.0
* fix: lint errors
* fix: style edition 2024

SWS now requires Rust 1.85.0 (Rust 2024 Edition) or later
https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/
2025-10-26 02:04:21 +02:00
Jose Quintana
0b5577085d chore: remove public from Cache-Control header value (#562)
It removes `public` from `Cache-Control` value, leaving max-age=<VALUE>, which can prevent CDN and Basic Authentication issues. See details on #560.

This applies to the "Cache-Control Headers" feature, with no user-breaking changes expected.
2025-09-06 09:20:09 +02:00
Jose Quintana
5fbd0c5696 fix: add missing Origin to the Vary header value when CORS enabled (#534)
reference: https://fetch.spec.whatwg.org/#example-vary-origin
2025-03-28 09:21:29 +01:00
Jose Quintana
a3d40b8c2f fix: issues when building SWS without default features (#480)
* fix: issues when building without default features
* fix: windows http1_cancel_recv build issues
2024-09-10 15:28:54 +02:00
Jose Quintana
a72c7b3c6b fix: wrong Content-Encoding when compression & compression-static enabled (#471) 2024-08-13 01:32:41 +02:00
Jose Quintana
915d04012e fix: can not run tests via cargo when passing non-sws arguments (#466)
When running tests with additional non-sws arguments, tests execution
fails because sws is trying to parse cli arguments anyways.

Now, sws won't parse arguments by default when running tests.
For example, the following command will work as expected:

cargo test -- --test-threads 1 --nocapture
2024-07-22 21:32:26 +02:00
Jose Quintana
3410365ed0 fix: duplicate Vary response headers for compression and compression-static features (#453)
it prevents duplicate `vary` headers in responses when enabling
`compression` and `compression-static`.

* fix: duplicate `vary` response headers for compression feature
* fix: failed tests for experimental features
2024-06-07 00:47:34 +02:00