Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
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
Romain Courteaud
erp5_rtl_support
Commits
ef46e59f
Commit
ef46e59f
authored
Jul 27, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_http_proxy] Typo
parent
b03e0643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
bt5/erp5_http_proxy/ExtensionTemplateItem/portal_components/extension.erp5.HTTPProxy.py
...emplateItem/portal_components/extension.erp5.HTTPProxy.py
+3
-1
No files found.
bt5/erp5_http_proxy/ExtensionTemplateItem/portal_components/extension.erp5.HTTPProxy.py
View file @
ef46e59f
...
@@ -21,6 +21,7 @@ def request(self, url, REQUEST):
...
@@ -21,6 +21,7 @@ def request(self, url, REQUEST):
if
v
is
not
None
:
if
v
is
not
None
:
proxy_query_header
[
k
]
=
v
proxy_query_header
[
k
]
=
v
result
=
''
try
:
try
:
proxy_response
=
requests
.
request
(
proxy_response
=
requests
.
request
(
REQUEST
.
other
[
'method'
],
REQUEST
.
other
[
'method'
],
...
@@ -42,6 +43,7 @@ def request(self, url, REQUEST):
...
@@ -42,6 +43,7 @@ def request(self, url, REQUEST):
except
requests
.
exceptions
.
TooManyRedirects
:
except
requests
.
exceptions
.
TooManyRedirects
:
status_code
=
520
status_code
=
520
else
:
else
:
result
=
proxy_response
.
content
status_code
=
proxy_response
.
status_code
status_code
=
proxy_response
.
status_code
if
status_code
==
500
:
if
status_code
==
500
:
status_code
=
520
status_code
=
520
...
@@ -58,4 +60,4 @@ def request(self, url, REQUEST):
...
@@ -58,4 +60,4 @@ def request(self, url, REQUEST):
"""
"""
RESPONSE
.
setStatus
(
status_code
)
RESPONSE
.
setStatus
(
status_code
)
return
proxy_response
.
content
return
result
\ No newline at end of file
\ No newline at end of file
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