Skip to content

Incorrect host returned for request with port #797

Closed
@kate-osborn

Description

@kate-osborn

The HTTPRouteHostnameIntersection conformance test fails one test case because the host returned does not match the host sent.

The request's host is very.specific.com:1234 and nginx returns very.specific.com. Note that we are routing the request to the correct backend.

Sending Request:
< GET /s1 HTTP/1.1
< Host: very.specific.com:1234
< User-Agent: Go-http-client/1.1
< X-Echo-Set-Header:
< Accept-Encoding: gzip
Received Response:
< HTTP/1.1 200 OK
< Content-Length: 379
< Connection: keep-alive
< Content-Type: application/json
< Date: Tue, 27 Jun 2023 19:45:12 GMT
< Server: nginx/1.25.1
< X-Content-Type-Options: nosniff
<
< {
<  "path": "/s1",
<  "host": "very.specific.com",
<  "method": "GET",
<  "proto": "HTTP/1.0",
<  "headers": {
<   "Accept-Encoding": [
<    "gzip"
<   ],
<   "Connection": [
<    "close"
<   ],
<   "User-Agent": [
<    "Go-http-client/1.1"
<   ],
<   "X-Echo-Set-Header": [
<    ""
<   ]
<  },
<  "namespace": "gateway-conformance-infra",
<  "ingress": "",
<  "service": "",
<  "pod": "infra-backend-v1-6b94cf477-x5wwt"
< }

Error: expected host to be very.specific.com:1234, got very.specific.com (after 29.1768454s)

Acceptance Criteria:

  • Make sure the conformance test mentioned above passes

Metadata

Metadata

Assignees

Labels

refinedRequirements are refined and the issue is ready to be implemented.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions