From 2c21e3e10010d68ded5a35d81b726e1bd168055f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Oct 2017 16:21:37 -0400 Subject: [PATCH] change qs from `domain` to `url` --- src/Icons/Controllers/IconsController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Icons/Controllers/IconsController.cs b/src/Icons/Controllers/IconsController.cs index 4bcfe8ffa1..1be4312455 100644 --- a/src/Icons/Controllers/IconsController.cs +++ b/src/Icons/Controllers/IconsController.cs @@ -27,19 +27,19 @@ namespace Bit.Icons.Controllers } [HttpGet("")] - public async Task Get([FromQuery]string domain) + public async Task Get([FromQuery]string url) { - if(string.IsNullOrWhiteSpace(domain)) + if(string.IsNullOrWhiteSpace(url)) { return new BadRequestResult(); } - if(!domain.StartsWith("http://") || !domain.StartsWith("https://")) + if(!url.StartsWith("http://") || !url.StartsWith("https://")) { - domain = "http://" + domain; + url = "http://" + url; } - if(!Uri.TryCreate(domain, UriKind.Absolute, out Uri uri)) + if(!Uri.TryCreate(url, UriKind.Absolute, out Uri uri)) { return new BadRequestResult(); }