Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos
Commits
f9535a5d
Commit
f9535a5d
authored
Feb 03, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend: Improve configuration header name
X-Reply-Status-Code follow usual way to configure responses.
parent
95c54583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
software/caddy-frontend/test/test.py
software/caddy-frontend/test/test.py
+2
-2
No files found.
software/caddy-frontend/test/test.py
View file @
f9535a5d
...
...
@@ -487,7 +487,7 @@ class TestHandler(BaseHTTPRequestHandler):
def
do_PUT
(
self
):
config
=
{
'status_code'
:
self
.
headers
.
dict
.
get
(
'status-code'
,
'200'
)
'status_code'
:
self
.
headers
.
dict
.
get
(
'
x-reply-
status-code'
,
'200'
)
}
prefix
=
'x-reply-header-'
length
=
len
(
prefix
)
...
...
@@ -3811,7 +3811,7 @@ class TestSlave(SlaveHttpFrontendTestCase, TestDataMixin):
backend_url = self.getSlaveParameterDictDict()['
enable_cache
']['
url
']
result = requests.put(backend_url + path, headers={
'
X
-
Reply
-
Header
-
Cache
-
Control
': '
max
-
age
=%
s
,
public
' % (max_age,),
'
Status
-
Code
': status_code,
'
X
-
Reply
-
Status
-
Code
': status_code,
'
X
-
Reply
-
Body
': base64.b64encode(body),
})
self.assertEqual(result.status_code, httplib.CREATED)
...
...
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