Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.
Permalink
Browse files
uuuuugh
  • Loading branch information
steveklabnik committed Jan 26, 2017
1 parent 81cbd9e commit 7df6c5e45da57fb0c15ca48c35e2b561a5a36185
Showing 1 changed file with 1 addition and 1 deletion.
@@ -44,7 +44,7 @@ impl Service for Contributors {
println!("request!");
if let Some(raw) = req.headers().get_raw("x-forwarded-proto") {
println!("seen header: {:?}", raw);
if raw == &b"https"[..] {
if raw != &b"https"[..] {
println!("redirecting to https");
return ::futures::finished(
Response::new()

1 comment on commit 7df6c5e

@steveklabnik
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was redirecting all https requests to https, and not redirecting http requets

good job, me

Please sign in to comment.