Skip to content

Commit

Permalink
Ensure signature is kept. Add vulture whitelist.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jun 14, 2019
1 parent 8ddc74a commit f9cc12e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hug/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def process_request(self, request, response):
data = self.store.get(sid)
request.context.update({self.context_name: data})

def process_response(self, request, response, resource, _req_succeeded):
def process_response(self, request, response, resource, req_succeeded):
"""Save request context in coupled store object. Set cookie containing a session ID."""
sid = request.cookies.get(self.cookie_name, None)
if sid is None or not self.store.exists(sid):
Expand Down Expand Up @@ -138,7 +138,7 @@ def process_request(self, request, response):
)
)

def process_response(self, request, response, resource, _req_succeeded):
def process_response(self, request, response, resource, req_succeeded):
"""Logs the basic data returned by the API"""
self.logger.info(self._generate_combined_log(request, response))

Expand Down Expand Up @@ -176,7 +176,7 @@ def match_route(self, reqpath):

return reqpath

def process_response(self, request, response, resource, _req_succeeded):
def process_response(self, request, response, resource, req_succeeded):
"""Add CORS headers to the response"""
response.set_header("Access-Control-Allow-Credentials", str(self.allow_credentials).lower())

Expand Down

0 comments on commit f9cc12e

Please sign in to comment.