Skip to content

Commit e083a9b

Browse files
committed
HttpVersionParser
1 parent 3acda7c commit e083a9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WireMock.Net/Util/HttpVersionParser.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Text.RegularExpressions;
23
using Stef.Validation;
34

@@ -8,7 +9,7 @@ namespace WireMock.Util;
89
/// </summary>
910
internal static class HttpVersionParser
1011
{
11-
private static readonly Regex HttpVersionRegex = new(@"HTTP/(\d+(\.\d+)?(?!\.))", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Compiled);
12+
private static readonly Regex HttpVersionRegex = new(@"HTTP/(\d+(\.\d+)?(?!\.))", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Compiled, TimeSpan.FromMilliseconds(100));
1213

1314
/// <summary>
1415
/// Try to extract the version (as a string) from the protocol.

0 commit comments

Comments
 (0)