Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7abfaafcf9b72d56f9315cf7f4e8444a62f88407
parent 4010a967a6ff265a21c3b1978ffeecccc78f368f
Author: Sergio Benitez <sb@sergio.bz>
Date:   Mon, 13 Aug 2018 00:44:35 -0700

Emit a helpful error when 'LocalRequest' is malformed.

Diffstat:
Mcore/lib/src/local/request.rs | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/core/lib/src/local/request.rs b/core/lib/src/local/request.rs @@ -397,6 +397,7 @@ impl<'c> LocalRequest<'c> { if let Ok(uri) = Origin::parse(uri) { request.set_uri(uri.into_owned()); } else { + error!("Malformed request URI: {}", uri); let res = client.rocket().handle_error(Status::BadRequest, request); return LocalResponse { _request: owned_request, response: res }; }