File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/mock_vws/_flask_server Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,6 @@ dependencies = [
277
277
" requests-mock" ,
278
278
" tzdata; sys_platform == 'win32'" ,
279
279
" vws-auth-tools" ,
280
- " werkzeug"
281
280
]
282
281
283
282
[project .optional-dependencies ]
Original file line number Diff line number Diff line change 10
10
from http import HTTPStatus
11
11
12
12
import requests
13
- import werkzeug
14
13
from flask import Flask , Response , request
15
14
from pydantic import BaseSettings
16
15
@@ -101,7 +100,8 @@ def handle_exceptions(exc: ValidatorException) -> Response:
101
100
headers = exc .headers ,
102
101
)
103
102
104
- response .headers = werkzeug .datastructures .Headers (exc .headers )
103
+ response .headers .clear ()
104
+ response .headers .extend (exc .headers )
105
105
return response
106
106
107
107
Original file line number Diff line number Diff line change 14
14
from http import HTTPStatus
15
15
16
16
import requests
17
- import werkzeug
18
17
from flask import Flask , Response , request
19
18
from pydantic import BaseSettings
20
19
@@ -134,7 +133,8 @@ def handle_exceptions(exc: ValidatorException) -> Response:
134
133
headers = exc .headers ,
135
134
)
136
135
137
- response .headers = werkzeug .datastructures .Headers (exc .headers )
136
+ response .headers .clear ()
137
+ response .headers .extend (exc .headers )
138
138
return response
139
139
140
140
You can’t perform that action at this time.
0 commit comments