[backend/core] Fix profile field verification handling for non-html links
This commit is contained in:
parent
5ef8e3581c
commit
dd8f6b063e
1 changed files with 1 additions and 1 deletions
|
@ -1187,7 +1187,7 @@ public class UserService(
|
||||||
|| !Uri.TryCreate(userProfileField.Value, UriKind.Absolute, out var uri))
|
|| !Uri.TryCreate(userProfileField.Value, UriKind.Absolute, out var uri))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var res = await httpClient.GetAsync(uri);
|
var res = await httpClient.GetAsync(uri, HttpCompletionOption.ResponseHeadersRead);
|
||||||
|
|
||||||
if (!res.IsSuccessStatusCode
|
if (!res.IsSuccessStatusCode
|
||||||
|| res.Content.Headers.ContentType?.MediaType != "text/html"
|
|| res.Content.Headers.ContentType?.MediaType != "text/html"
|
||||||
|
|
Loading…
Add table
Reference in a new issue