Skip to content

Commit

Permalink
Don't smash the pod ID when the GUI is serving as an ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Flynn <[email protected]>
  • Loading branch information
kflynn committed May 2, 2023
1 parent ebeef43 commit ce174f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/faces-service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@ def do_GET(self):
rcode = response.status_code
rtext = response.text
rtype = response.headers.get("content-type")

# If we're forwarding a request to the face service, we want
# to forward its pod ID back to the client.
pod_id = response.headers.get("x-faces-pod", pod_id)
except requests.RequestException as e:
rcode = 500
rtext = str(e)
Expand Down

0 comments on commit ce174f3

Please sign in to comment.