Permalink
Browse files

Add SERVER_NAME to default headers

  • Loading branch information...
1 parent ac9e928 commit 4a9b8e6feb80df1e6bb8bddc8a35353d16b06b5b @dcramer committed Oct 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mock_django/http.py
View
1 mock_django/http.py
@@ -56,6 +56,7 @@ def MockHttpRequest(url='/', method='GET', GET=None, POST=None, META=None):
META = {
'REMOTE_ADDR': '127.0.0.1',
'HTTP_REFERER': '',
+ 'SERVER_NAME': 'testserver',
}
request = WsgiHttpRequest()

0 comments on commit 4a9b8e6

Please sign in to comment.