Skip to content

Commit

Permalink
disabling redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
Heulitig committed Nov 28, 2023
1 parent 5e13cd7 commit 61d90ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fastn-core/src/commands/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ pub async fn serve(
if file_response.status() == actix_web::http::StatusCode::NOT_FOUND {
// TODO: Check if path exists in dynamic urls also, otherwise pass to endpoint
// Already checked in the above method serve_file

tracing::info!("executing proxy: path: {}", &path);
let (package_name, url, mut conf) =
fastn_core::config::utils::get_clean_url(config, path.as_str())?;
Expand Down
2 changes: 1 addition & 1 deletion fastn-core/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl ResponseBuilder {
{
response_builder.insert_header(header);
}
if status == actix_web::http::StatusCode::FOUND {
if status == actix_web::http::StatusCode::FOUND && false {

Check failure on line 282 in fastn-core/src/http.rs

View workflow job for this annotation

GitHub Actions / Rust Checks

this boolean expression contains a logic bug
response_builder.status(actix_web::http::StatusCode::OK);
if let Some(location) = response.headers().get(actix_web::http::header::LOCATION) {
let redirect = location.to_str().unwrap();
Expand Down

0 comments on commit 61d90ad

Please sign in to comment.