On 2 July 2014 15:42, Florian Apolloner <f.apollo...@gmail.com> wrote: > On Wednesday, July 2, 2014 3:36:22 PM UTC+2, Łukasz Rekucki wrote: >> >> It doesn't just alter it, but makes it conform to HTTP standard. While >> most browsers will accept relative urls, I don't think Django should >> sacrafice backwards compatibility for an arcane CGI feature. > > > Internal redirects are imo an important feature to support, maybe not by > default, but the response should be able to say "I know what I am doing".
Sure and that's why Nginx has X-Accel-Redirect. The problem with this feature is that it requires using an (yet[1]) invalid value for an already HTTP header. Personally, I would workaround this by adding my own header like X-CGI-Forward and then make the CGI-Django wrapper override Location with its value if it's present. [1]: It seems the next version of HTTP 1.1 will allow non-absolute URLs, but obviously CGI applications won't be able to return them to the client because of this feature ;). > > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/19074151-e0eb-4925-90fe-9b1e5eedfd50%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAEZs-E%2Bqq7wmwrZomCQ9%3D0OUgxTrSZ__jCDkJa2%3DanAg6JTDNA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.