Skip to content

Instantly share code, notes, and snippets.

@mwrock
Created January 28, 2013 18:47
Show Gist options
  • Save mwrock/4658001 to your computer and use it in GitHub Desktop.
Save mwrock/4658001 to your computer and use it in GitHub Desktop.
Using the RR API to get around App Harbor Port rewriter
RequestReduce.Api.Registry.UrlTransformer =
(context, , rrUrl) => {
var uri = new Uri(rrUrl);
if(uri.IsDefaultPort) {return rrUrl;}
var builder = new UriBuilder(uri);
builder.port = "80" //or whatever
return builder.ToString();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment