Skip to content

Instantly share code, notes, and snippets.

Created January 17, 2013 20:29
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Generate urls properly on appharbor.
<add key="aspnet:UseHostHeaderForRequestUrl" value="true"/>
Copy link

That's really cool. I didn't know that even existed.

Copy link

Correct me if i'm wrong, but this still will not work for accessing the Request.Url property directly, so appharbor's code snippet is still valid for class libraries that may do something like log the Request URL for example (or attach the url to an email, etc)

Copy link

@robbihun it will change the Request.Url property. Try it out for yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment