Skip to content

Commit

Permalink
Remove unneeded header (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
corydolphin committed Jul 3, 2016
1 parent a489d3c commit 7a82aeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flask_cors/core.py
Expand Up @@ -164,7 +164,7 @@ def get_allow_headers(options, acl_request_headers):
return None


def get_cors_headers(options, request_headers, request_method, response_headers):
def get_cors_headers(options, request_headers, request_method):
origins_to_set = get_cors_origins(options, request_headers.get('Origin'))
headers = MultiDict()

Expand Down Expand Up @@ -226,8 +226,7 @@ def set_cors_headers(resp, options):
LOG.debug('CORS have been already evaluated, skipping')
return resp

headers_to_set = get_cors_headers(options, request.headers, request.method,
resp.headers)
headers_to_set = get_cors_headers(options, request.headers, request.method)

LOG.debug('Settings CORS headers: %s', str(headers_to_set))

Expand Down

0 comments on commit 7a82aeb

Please sign in to comment.