Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Portalier <[email protected]>
  • Loading branch information
straight-shoota and ysbaddaden authored Jan 31, 2025
1 parent c2d1fa3 commit 22aa9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/std/http/server/handlers/static_file_handler_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ describe HTTP::StaticFileHandler do
response.status_code.should eq(404)
end

it "does not redirect directory when directory_listing=true" do
it "does not redirect directory when directory_listing=false" do
response = handle HTTP::Request.new("GET", "/foo"), directory_listing: false
response.status_code.should eq(404)
end

it "redirect directory when directory_listing=false" do
it "redirect directory when directory_listing=true" do
response = handle HTTP::Request.new("GET", "/foo"), directory_listing: true
response.status_code.should eq(302)
response.headers["Location"].should eq "/foo/"
Expand Down

0 comments on commit 22aa9c1

Please sign in to comment.