8000 remove parser logic for legacy · localstack/localstack@6b60f35 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b60f35

Browse files
committed
remove parser logic for legacy
1 parent 124e62d commit 6b60f35

File tree

1 file changed

+2
-6
lines changed
  • localstack-core/localstack/aws/protocol

1 file changed

+2
-6
lines changed

localstack-core/localstack/aws/protocol/parser.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
from werkzeug.exceptions import BadRequest, NotFound
8989

9090
from localstack.aws.protocol.op_router import RestServiceOperationRouter
91-
from localstack.config import LEGACY_V2_S3_PROVIDER
9291
from localstack.http import Request
9392

9493

@@ -1074,11 +1073,8 @@ def _is_vhost_address_get_bucket(request: Request) -> str | None:
10741073

10751074
@_handle_exceptions
10761075
def parse(self, request: Request) -> Tuple[OperationModel, Any]:
1077-
if not LEGACY_V2_S3_PROVIDER:
1078-
"""Handle virtual-host-addressing for S3."""
1079-
with self.VirtualHostRewriter(request):
1080-
return super().parse(request)
1081-
else:
1076+
"""Handle virtual-host-addressing for S3."""
1077+
with self.VirtualHostRewriter(request):
10821078
return super().parse(request)
10831079

10841080
def _parse_shape(

0 commit comments

Comments
 (0)
0