mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixes eve_proxy to allow POST values
This commit is contained in:
@@ -10,7 +10,13 @@ def retrieve_xml(request):
|
|||||||
# This is the URL path (minus the parameters).
|
# This is the URL path (minus the parameters).
|
||||||
url_path = request.META['PATH_INFO'].replace(reverse('eve_proxy.views.retrieve_xml'),"/")
|
url_path = request.META['PATH_INFO'].replace(reverse('eve_proxy.views.retrieve_xml'),"/")
|
||||||
# The parameters attached to the end of the URL path.
|
# The parameters attached to the end of the URL path.
|
||||||
params = request.META['QUERY_STRING']
|
|
||||||
|
if request.method == 'POST':
|
||||||
|
params = request.POST.urlencode()
|
||||||
|
print params
|
||||||
|
else:
|
||||||
|
params = request.META['QUERY_STRING']
|
||||||
|
print params
|
||||||
|
|
||||||
if url_path == '/' or url_path == '':
|
if url_path == '/' or url_path == '':
|
||||||
# If they don't provide any kind of query, shoot a quick error message.
|
# If they don't provide any kind of query, shoot a quick error message.
|
||||||
|
|||||||
Reference in New Issue
Block a user