mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 09:18:13 +00:00
9 lines
412 B
Python
9 lines
412 B
Python
from django.conf import settings
|
|
from django.core.urlresolvers import reverse
|
|
|
|
class SWFUploadMiddleware(object):
|
|
def process_request(self, request):
|
|
if (request.method == 'POST') and\
|
|
(request.path == reverse('jfu_upload')) and\
|
|
settings.SESSION_COOKIE_NAME in request.POST:
|
|
request.COOKIES[settings.SESSION_COOKIE_NAME] = request.POST[settings.SESSION_COOKIE_NAME] |