Skip to content

ReassignProxyRequest and Path Transforms #1749

Answered by Tratcher
asgeirn asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, interesting. Those transforms are associated with the route, not the cluster, so changing which cluster it's assigned to doesn't change the transforms.

You should be able to make this work by also re-assigning the route the way you reassign the cluster. If that works for you then please open an issue to add an overload of ReassignProxyRequest that accepts both route and cluster.

public static void ReassignProxyRequest(this HttpContext context, ClusterState cluster)
{
var oldFeature = context.GetReverseProxyFeature();
var destinations = cluster.DestinationsState;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asgeirn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants