Skip to content

Commit ad6b33b

Browse files
committed
Fix accessing request's META attribute
1 parent 7077ac9 commit ad6b33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logstash_async/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _try_to_get_host_from_remote(self, request):
282282
if 'HTTP_HOST' in request.META:
283283
return request.META['HTTP_HOST']
284284
else:
285-
return self.META['SERVER_NAME']
285+
return request.META['SERVER_NAME']
286286

287287

288288
class FlaskLogstashFormatter(LogstashFormatter):

0 commit comments

Comments
 (0)