Changeset 6221
- Timestamp:
- 09/14/07 16:41:48 (1 year ago)
- Files:
-
- django/trunk/django/core/handlers/base.py (modified) (1 diff)
- django/trunk/django/http/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/handlers/base.py
r6219 r6221 143 143 this function converts them to absolute paths. 144 144 """ 145 if ' location' in response.headersand http.get_host(request):145 if 'Location' in response and http.get_host(request): 146 146 response['Location'] = request.build_absolute_uri(response['Location']) 147 147 return response django/trunk/django/http/__init__.py
r6212 r6221 274 274 return self.headers.has_key(header.lower()) 275 275 276 __contains__ = has_header 277 276 278 def set_cookie(self, key, value='', max_age=None, expires=None, path='/', domain=None, secure=None): 277 279 self.cookies[key] = value
