phaedra 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phaedra/middleware/static.rb +1 -1
- data/lib/phaedra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47c1b79ae715e83f3dd098fb9d0d29c5d89299f96c01d084f1cb44573f216022
|
4
|
+
data.tar.gz: e716ca8ef384fdeadd773485042099d7bf7840b007e636588ce6fb28e40ab4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf41193d15f6bc3678ebccd9239e7185479b3bd4029f593887202ca3e88b02529702688f64f2b373c90e54fed766b264a9f12c2a8a39e4c90039d0d708d9b89a
|
7
|
+
data.tar.gz: 23686c007d52d61763ac393ced71d6485dbf3b3c45cc153828950f6e9c1e8018934834a0dfb90a7908d3357334c3542b34e74629d9774663607f86b21080fb94
|
@@ -6,7 +6,7 @@ module Phaedra
|
|
6
6
|
class Static
|
7
7
|
def initialize(app, options)
|
8
8
|
@app = app
|
9
|
-
@try = [".html", "index.html", "/index.html"
|
9
|
+
@try = ["", ".html", "index.html", "/index.html", *options[:try]]
|
10
10
|
@static = Rack::Static.new(
|
11
11
|
lambda { |_| [404, {}, []] },
|
12
12
|
options)
|
data/lib/phaedra/version.rb
CHANGED