Skip to content

Commit

Permalink
Removes deprecation warning in devd when proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Nov 8, 2017
1 parent 429499c commit 7e32902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ fn _generate_config(buf: &mut String, port: u16, routes: &[Route],
writeln!(buf, " h{}: !Proxy", idx)?;
writeln!(buf, " mode: forward")?;
writeln!(buf, " ip-header: X-Forwarded-For")?;
writeln!(buf, " request-id-header: X-Request-Id")?;
writeln!(buf, " destination: d{}/{}", idx, path)?;
if crossdomain {
writeln!(buf, " extra-headers:")?;
Expand All @@ -136,6 +135,7 @@ fn _generate_config(buf: &mut String, port: u16, routes: &[Route],
writeln!(buf, "")?;
writeln!(buf, " d{}:", idx)?;
writeln!(buf, " load-balancing: queue")?;
writeln!(buf, " request-id-header: X-Request-Id")?;
writeln!(buf, " addresses: [{}]", host)?;
}
}
Expand Down

0 comments on commit 7e32902

Please sign in to comment.