mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.5.x] Fixed #19519 -- Fired request_finished in the WSGI iterable's close().
Backport of acc5396.
This commit is contained in:
9
tests/regressiontests/handlers/urls.py
Normal file
9
tests/regressiontests/handlers/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
from django.http import HttpResponse, StreamingHttpResponse
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^regular/$', lambda request: HttpResponse(b"regular content")),
|
||||
url(r'^streaming/$', lambda request: StreamingHttpResponse([b"streaming", b" ", b"content"])),
|
||||
)
|
||||
Reference in New Issue
Block a user