Remove etag logic as it's not implemented in Crystal 0.25.1 (#470)

This commit is contained in:
Rafał Wojsznis 2018-07-16 04:54:36 +02:00 committed by Serdar Dogruyol
parent b8ec6ee328
commit 1e18389f5f
2 changed files with 8 additions and 11 deletions

View file

@ -30,6 +30,7 @@ describe Kemal::StaticFileHandler do
headers = HTTP::Headers{"If-None-Match" => etag}
response = handle HTTP::Request.new("GET", "/dir/test.txt", headers)
response.headers["Content-Type"]?.should be_nil
response.status_code.should eq(304)
response.body.should eq ""
end