File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -754,16 +754,16 @@ func TestServeFileDirectoryRedirect(t *testing.T) {
754
754
755
755
ctx .Request .Reset ()
756
756
ctx .Response .Reset ()
757
- ServeFile (& ctx , ".git " )
757
+ ServeFile (& ctx , "fasthttputil " )
758
758
if ctx .Response .StatusCode () != StatusFound {
759
- t .Fatalf ("Unexpected status code %d for directory '/.git ' without trailing slash. Expecting %d." , ctx .Response .StatusCode (), StatusFound )
759
+ t .Fatalf ("Unexpected status code %d for directory '/fasthttputil ' without trailing slash. Expecting %d." , ctx .Response .StatusCode (), StatusFound )
760
760
}
761
761
762
762
ctx .Request .Reset ()
763
763
ctx .Response .Reset ()
764
- ServeFile (& ctx , ".git /" )
764
+ ServeFile (& ctx , "fasthttputil /" )
765
765
if ctx .Response .StatusCode () != StatusOK {
766
- t .Fatalf ("Unexpected status code %d for directory '/.git /' with trailing slash. Expecting %d." , ctx .Response .StatusCode (), StatusOK )
766
+ t .Fatalf ("Unexpected status code %d for directory '/fasthttputil /' with trailing slash. Expecting %d." , ctx .Response .StatusCode (), StatusOK )
767
767
}
768
768
769
769
ctx .Request .Reset ()
You can’t perform that action at this time.
0 commit comments