Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
surykatka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
surykatka
Commits
389b5eba
Commit
389b5eba
authored
Dec 06, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not warn about missing CSP in case of redirection
parent
6aa7f666
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/surykatka/bot.py
src/surykatka/bot.py
+5
-0
No files found.
src/surykatka/bot.py
View file @
389b5eba
...
@@ -731,7 +731,12 @@ class WebBot:
...
@@ -731,7 +731,12 @@ class WebBot:
if
(
if
(
"Content-Security-Policy"
"Content-Security-Policy"
not
in
network_change
[
"http_header_dict"
]
not
in
network_change
[
"http_header_dict"
]
)
and
(
network_change
[
"status_code"
]
not
in
(
301
,
302
,
303
)
):
):
# In case of redirection, CSP is not needed
# as the browser will not render the page
result_dict
[
"warning"
].
append
(
result_dict
[
"warning"
].
append
(
{
{
"text"
:
"(No Content-Security-Policy header) %s"
"text"
:
"(No Content-Security-Policy header) %s"
...
...
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