Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-static
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-static
Commits
3c0917e4
Commit
3c0917e4
authored
Sep 18, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for clean_urls since headers aren't explicitly called
parent
bc7fd25a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
static.json
spec/fixtures/custom_headers/static.json
+5
-1
simple_spec.rb
spec/simple_spec.rb
+1
-0
No files found.
spec/fixtures/custom_headers/static.json
View file @
3c0917e4
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
"headers"
:
{
"headers"
:
{
"/"
:
{
"/"
:
{
"Cache-Control"
:
"no-cache"
"Cache-Control"
:
"no-cache"
},
"/foo.html"
:
{
"X-Foo"
:
"true"
}
}
}
},
"clean_urls"
:
true
}
}
spec/simple_spec.rb
View file @
3c0917e4
...
@@ -176,6 +176,7 @@ STATIC_JSON
...
@@ -176,6 +176,7 @@ STATIC_JSON
response
=
app
.
get
(
"/foo.html"
)
response
=
app
.
get
(
"/foo.html"
)
expect
(
response
[
"cache-control"
]).
to
eq
(
nil
)
expect
(
response
[
"cache-control"
]).
to
eq
(
nil
)
expect
(
response
[
"X-Foo"
]).
to
eq
(
"true"
)
expect
(
response
.
code
).
to
eq
(
"200"
)
expect
(
response
.
code
).
to
eq
(
"200"
)
expect
(
response
.
body
.
chomp
).
to
eq
(
"foo"
)
expect
(
response
.
body
.
chomp
).
to
eq
(
"foo"
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment