Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinger supplies a tokenized URL to WebClient #106

Closed
bherila opened this issue Apr 8, 2013 · 1 comment
Closed

Pinger supplies a tokenized URL to WebClient #106

bherila opened this issue Apr 8, 2013 · 1 comment
Assignees
Milestone

Comments

@bherila
Copy link
Contributor

bherila commented Apr 8, 2013

As part of the Scheduling/KeepAlive, Pinger.cs supplies a tokenized URL to a WebClient without first parsing it.
src/Mvc/MvcTemplates/N2/Resources/KeepAlive/Pinger.cs line 42.

 string response = wc.DownloadString(url);

Should be.

 string response = wc.DownloadString(Url.ParseTokenized(url));
@bherila
Copy link
Contributor Author

bherila commented Nov 30, 2014

This is taken care of by url = url.SetPath(config.Scheduler.KeepAlivePath.ResolveUrlTokens());

The extension methods in ResolveUrlTokens parse the tokens in question.

@bherila bherila closed this as completed Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant