Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django / lib / api / proxy @ 39974c71

Name Size
__init__.py 4.1 kB
utils.py 1.8 kB

Latest revisions

# Date Author Comment
39974c71 09/17/2013 01:55 pm Ilias Tsitsimpis

snf-django-lib: AssertionError in proxy

When we use proxy, we have to check that path starts with
the given proxy_base, and raise an AssertionError otherwise.

The check was there but it was wrong (there was missing
a not) and also no exception was raised.

d546637f 08/05/2013 04:06 pm Christos Stavrakakis

snf-django: PEP8 fixes

152e7bba 06/03/2013 11:50 am Georgios D. Tsoukalas

snf-django proxy: preserve the response's headers

e3ff6830 06/03/2013 11:49 am Georgios D. Tsoukalas

make synnefo URLs consistent and configurable

https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______|
BASE_HOST BASE_PATH PREFIX Hardcoded...

f870efe2 05/28/2013 07:56 pm Sofia Papagiannaki

snf-django-lib: Fix proxy issue

The ``X-Forwarded-Host`` header should not be forwared to the target
because django appends its value to the Host header and
results in validate_host() failure.

5ad8eca1 05/20/2013 04:16 pm Kostas Papadimitriou

django-lib: Preserve proxy target path

142133fb 05/20/2013 03:08 pm Kostas Papadimitriou

snf-django: Improve headers handling in common proxy util

- Avoid proxying Connection, Host and Cookie headers
- Cleanup non headers keys (e.g. wsgi.*)
- Set X-Forwarded-For header

fed0b230 05/15/2013 06:38 pm Christos Stavrakakis

Replace 'synnefo.lib.http' with 'objpool.http'

33c84784 05/15/2013 06:20 pm Sofia Papagiannaki

snf-django-lib: provide proxy functionality

View revisions

Also available in: Atom