Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/mock_vws/_flask_server/vwq.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from http import HTTPStatus

import requests
import werkzeug
from flask import Flask, Response, request
from pydantic import BaseSettings
from werkzeug.datastructures import Headers

from mock_vws._query_tools import (
ActiveMatchingTargetsDeleteProcessing,
Expand Down Expand Up @@ -105,7 +105,7 @@ def handle_exceptions(exc: ValidatorException) -> Response:
headers=exc.headers,
)

response.headers = Headers(exc.headers)
response.headers = werkzeug.datastructures.Headers(exc.headers)
return response


Expand Down
4 changes: 2 additions & 2 deletions src/mock_vws/_flask_server/vws.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
from http import HTTPStatus

import requests
import werkzeug
from flask import Flask, Response, request
from pydantic import BaseSettings
from werkzeug.datastructures import Headers

from mock_vws._constants import ResultCodes, TargetStatuses
from mock_vws._database_matchers import get_database_matching_server_keys
Expand Down Expand Up @@ -134,7 +134,7 @@ def handle_exceptions(exc: ValidatorException) -> Response:
headers=exc.headers,
)

response.headers = Headers(exc.headers)
response.headers = werkzeug.datastructures.Headers(exc.headers)
return response


Expand Down