Skip to content

Commit

Permalink
Address coderabbit feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler committed Jan 8, 2025
1 parent 978d892 commit 645e88c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OrcanodeMonitor/Core/Fetcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,11 @@ private static void AddHydrophoneStreamStatusEvent(OrcanodeMonitorContext contex
return await GetExactAudioSampleAsync(node, newUri, logger);
}

/// <summary>
/// Retrieves the last modified date of a resource via HTTP HEAD request.
/// </summary>
/// <param name="uri">The URI of the resource to check.</param>
/// <returns>The last modified date in UTC, or null if not available.</returns>
public async static Task<DateTime?> GetLastModifiedAsync(Uri uri)
{
using var headRequest = new HttpRequestMessage(HttpMethod.Head, uri);
Expand Down

0 comments on commit 645e88c

Please sign in to comment.