Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
preetwinder
erp5
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
Show 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):
if
v
is
not
None
:
proxy_query_header
[
k
]
=
v
result
=
''
try
:
proxy_response
=
requests
.
request
(
REQUEST
.
other
[
'method'
],
...
...
@@ -42,6 +43,7 @@ def request(self, url, REQUEST):
except
requests
.
exceptions
.
TooManyRedirects
:
status_code
=
520
else
:
result
=
proxy_response
.
content
status_code
=
proxy_response
.
status_code
if
status_code
==
500
:
status_code
=
520
...
...
@@ -58,4 +60,4 @@ def request(self, url, REQUEST):
"""
RESPONSE
.
setStatus
(
status_code
)
return
proxy_response
.
content
\ No newline at end of file
return
result
\ 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