Created
January 28, 2013 18:47
-
-
Save mwrock/4658001 to your computer and use it in GitHub Desktop.
Using the RR API to get around App Harbor Port rewriter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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