fix(deps): update rust crate tower-http to 0.3.3 #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.1.2->0.3.3Release Notes
tower-rs/tower-http
v0.3.3Compare Source
Added
ServeDir::call_fallback_on_method_not_allowedto allow calling the fallbackfor requests that aren't
GETorHEAD(#264)MakeRequestUuidfor generating request ids using UUIDs (#266)Fixed
Allowheader for405 Method Not Allowedresponses (#263)v0.3.2Compare Source
Fixed
ServeDir's fallback instead of the actual ones (#258)v0.3.1Compare Source
Fixed
Access-Control-Allow-Originheader when a list ofallowed origins is configured (the previous behavior of sending a comma-separated list like for
allowed methods and allowed headers is not allowed by any standard)
v0.3.0Compare Source
Added
ServeDir::{fallback, not_found_service}for calling another service ifthe file cannot be found (#243)
SetStatusto override status codes (#248)ServeDirandServeFilenow respond with405 Method Not Allowedto requests where themethod isn't
GETorHEAD(#249)CorsLayer::very_permissivewhich is likeCorsLayer::permissiveexcept it (truly) allows credentials. This is madepossible by mirroring the request's origin as well as method and headers
back as CORS-whitelisted ones (#237)
Varyheader (#237)Changed
allow-credentials: truefromCorsLayer::permissive.It never actually took effect in compliant browsers because it is mutually
exclusive with the
*wildcard (Any) on origins, methods and headers (#237)will continue to work. (BREAKING) (#237)
Anyincombination with
.allow_credentials(true). This configuration workedbefore, but resulted in browsers ignoring the
allow-credentialsheader,which defeats the purpose of setting it and can be very annoying to debug
(#237)
Fixed
v0.2.5Compare Source
Fixed
v0.2.4Compare Source
Added
CatchPanicmiddleware which catches panics and converts theminto
500 Internal Serverresponses (#214)Fixed
Accept-Encodingmore robust (#220)v0.2.3Compare Source
Changed
Fixed
allow_headers,allow_methods,allow_originand
expose_headersnow do nothing if given an emptyVec, instead of sendingthe respective header with an empty value (#218)
v0.2.2Compare Source
Fixed
Varyheaders for CORS preflight responses (#216)v0.2.1Compare Source
Added
Last-Modified(and friends) headers inServeDirandServeFile(#145)AsyncRequireAuthorization::layer(#195)Fixed
Cors: SetVaryheader (#199)ServeDirandServeFile: Fix potential directory traversal attack due toimproper path validation on Windows (#204)
v0.2.0Compare Source
Added
ServiceBuilderExtwhich adds methods totower::ServiceBuilderforadding middleware from tower-http (#106)
SetRequestIdandPropagateRequestIdmiddleware (#150)DefaultMakeSpan::levelto make log level of tracing spans easily configurable (#124)LatencyUnit::Secondsfor formatting latencies as seconds (#179)GrpcErrorsAsFailures(#189)be compressed. This can be used to disable compression of small responses,
responses with a certain
content-type, or something user defined (#172)Rangerequests (#173)Content-Lengthheader set (#169)Changed
AddAuthorization,InFlightRequests,SetRequestHeader,SetResponseHeader,AddExtension,MapRequestBodyandMapResponseBodynow requires underlying service to use
http::Request<ReqBody>andhttp::Response<ResBody>as request and responses (#182) (BREAKING)SetRequestHeaderLayerand
SetResponseHeaderLayer. This removes the need (and possibility) to specify abody type for these layers (#148) (BREAKING)
Box<dyn std::error::Error + Send + Sync>. This makes them usable ifthe body they're wrapping uses
Box<dyn std::error::Error + Send + Sync>asits error type which they previously weren't (#166) (BREAKING)
ServeDirandServeFiletoServeFileSystemResponseBodyandServeFileSystemResponseFuture(#187) (BREAKING)AuthorizeRequestandAsyncAuthorizeRequesttraits to be simpler (#192) (BREAKING)Removed
BodyOrIoError. Its been replaced withBox<dyn std::error::Error + Send + Sync>(#166) (BREAKING)compressionanddecompressionfeature. They were unnecessaryand
compression-full/decompression-fullcan be used to get fullcompression/decompression support. For more granular control,
[compression|decompression]-gzip,[compression|decompression]-brand[compression|decompression]-deflatemaybe used instead (#170) (BREAKING)
v0.1.3Compare Source
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.