diff -r 4baa7530912c -r 0931f368cb9a src/hp/views.py --- a/src/hp/views.py Wed Nov 14 17:26:06 2012 +0100 +++ b/src/hp/views.py Wed Nov 14 18:47:17 2012 +0100 @@ -69,11 +69,12 @@ def kc_proxy(request, path): - url = settings.KC_URL + path + r = requests.request(request.method, settings.KC_URL + path, data=request.POST, params=request.GET) - data = request.POST if request.method=="POST" else {} - - r = requests.request(request.method, url, data=data) - + logger.debug("Proxy r url : " + r.url) + logger.debug("Proxy r method : " + r.method) + logger.debug("Proxy r status : " + r.status) + logger.debug("Proxy r text : " + r.text) + return HttpResponse(content=r.text, content_type='application/json;charset=UTF-8') \ No newline at end of file