parent
2778b3ac84
commit
bef5f70eab
@ -80,10 +80,6 @@ fn redirect<T: Service>(
|
|||||||
LOCATION,
|
LOCATION,
|
||||||
T::redirect_url(&data.user, &data.repo, &head, &data.file).as_str(),
|
T::redirect_url(&data.user, &data.repo, &head, &data.file).as_str(),
|
||||||
)
|
)
|
||||||
.set(CacheControl(vec![
|
|
||||||
CacheDirective::Public,
|
|
||||||
CacheDirective::MaxAge(0),
|
|
||||||
]))
|
|
||||||
.finish()
|
.finish()
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,7 @@ use crate::{
|
|||||||
statics::{load_env_var, GITHUB_AUTH_QUERY, OPT},
|
statics::{load_env_var, GITHUB_AUTH_QUERY, OPT},
|
||||||
};
|
};
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
http::{
|
http::{header::LOCATION, StatusCode},
|
||||||
header::{CacheControl, CacheDirective, LOCATION},
|
|
||||||
StatusCode,
|
|
||||||
},
|
|
||||||
web, Error, HttpResponse,
|
web, Error, HttpResponse,
|
||||||
};
|
};
|
||||||
use awc::{error::PayloadError, Client, ClientResponse};
|
use awc::{error::PayloadError, Client, ClientResponse};
|
||||||
@ -271,10 +268,6 @@ impl Service for GitLab {
|
|||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
)
|
)
|
||||||
.set(CacheControl(vec![
|
|
||||||
CacheDirective::Public,
|
|
||||||
CacheDirective::MaxAge(0),
|
|
||||||
]))
|
|
||||||
.finish()
|
.finish()
|
||||||
})
|
})
|
||||||
.from_err(),
|
.from_err(),
|
||||||
|
Loading…
Reference in New Issue
Block a user