Skip to content

Commit

Permalink
do not use kwargs for headers callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Baris Metin committed Apr 30, 2013
1 parent b07be00 commit a6c83d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zygote/_httpserver.py
Expand Up @@ -364,7 +364,7 @@ def _on_headers(self, data):
return

if self._headers_callback is not None:
self._headers_callback(start_line, remote_ip=self.address[0], headers=headers)
self._headers_callback(start_line, self.address[0], headers)
self.request_callback(self._request)
except _BadRequestException, e:
logging.info("Malformed HTTP request from %s: %s",
Expand Down
2 changes: 1 addition & 1 deletion zygote/_httpserver_2.py
Expand Up @@ -275,7 +275,7 @@ def _on_headers(self, data):
self.stream.read_bytes(content_length, self._on_request_body)
return

self.on_headers(start_line, remote_ip=self.address[0], headers=headers)
self.on_headers(start_line, self.address[0], headers)
self.request_callback(self._request)
except _BadRequestException, e:
logging.info("Malformed HTTP request from %s: %s",
Expand Down

0 comments on commit a6c83d9

Please sign in to comment.