Skip to content

Commit

Permalink
Refactor log_config function to remove ellipsis in log message
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Sep 17, 2024
1 parent bc9917c commit b777ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust_http_proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,11 @@ fn lookup(
other => other,
};
return Some(
scheme_host_port.0.to_owned()
scheme_host_port.0.to_owned() // use raw requst's scheme
+ "://"
+ host
+ host // if it's default_host, use raw requst's host
+ ":"
+ &scheme_host_port.2.to_string()
+ &scheme_host_port.2.to_string() // use raw requst's port
+ &ele.location
+ &absolute_location[ele.redirect_url.len()..],
);
Expand Down

0 comments on commit b777ab5

Please sign in to comment.