toastdriven/django-tastypie — Issue #335: SERVER_NAME and SERVER_PORT values missing in request object
Author: pnuzhnyy
Created: 2012-01-19 01:23:16+00:00
State: open

Seems like these parameters are missing in the META dictionary for request objects. Tested both locally and in production (nginx). Both params are properly set within standard views. To reproduce the problem:

def dehydrate(self, bundle):
server_name = bundle.request.META['SERVER_NAME']
server_port = bundle.request.META['SERVER_PORT']
return bundle