Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
roqua-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RoQua
roqua-support
Commits
12d16028
Commit
12d16028
authored
7 years ago
by
Arnold van der Meulen
Browse files
Options
Downloads
Patches
Plain Diff
Add spec
parent
3fe10700
Branches
am-remove-hsts-header
No related tags found
1 merge request
!19
Add hsts header middleware
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/roqua/middleware/remove_hsts_header_spec.rb
+7
-0
7 additions, 0 deletions
spec/roqua/middleware/remove_hsts_header_spec.rb
with
7 additions
and
0 deletions
spec/roqua/middleware/remove_hsts_header_spec.rb
+
7
−
0
View file @
12d16028
...
...
@@ -33,4 +33,11 @@ describe Roqua::Middleware::RemoveHstsHeader do
expect
(
response
.
headers
.
keys
).
to_not
include
(
'Strict-Transport-Security'
)
end
it
'does not remove the header without the middleware'
do
request
=
Rack
::
MockRequest
.
new
(
app
)
response
=
request
.
get
(
'/some/path'
,
'CONTENT_TYPE'
=>
'text/plain'
)
expect
(
response
.
headers
.
keys
).
to
include
(
'Strict-Transport-Security'
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment