Skip to content

Commit c0ce903

Browse files
committed
fix url prefix
1 parent 1b40036 commit c0ce903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Prometheus.Client.MetricServer/MetricServer.HttpListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public MetricServer(string host, int port, string url, bool useHttps)
6262
public MetricServer(string hostname, int port, string url, IEnumerable<IOnDemandCollector> standardCollectors, ICollectorRegistry registry, bool useHttps)
6363
: base(standardCollectors, registry)
6464
{
65-
_httpListener.Prefixes.Add($"http{(useHttps ? "s" : "")}://{hostname}:{port}/{url}");
65+
_httpListener.Prefixes.Add($"http{(useHttps ? "s" : "")}://{hostname}:{port}/{url}/");
6666
}
6767

6868
/// <inheritdoc />

src/Prometheus.Client.MetricServer/Prometheus.Client.MetricServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Description>MetricServer for the Prometheus.Client</Description>
44
<Copyright>2017 © Sergey Kuznetsov</Copyright>
55
<AssemblyTitle>Prometheus.Client.MetricServer</AssemblyTitle>
6-
<VersionPrefix>1.2.0</VersionPrefix>
6+
<VersionPrefix>1.2.1</VersionPrefix>
77
<Authors>Sergey Kuznetsov</Authors>
88
<TargetFrameworks>net45;netstandard1.3;netstandard2.0</TargetFrameworks>
99
<AssemblyName>Prometheus.Client.MetricServer</AssemblyName>

0 commit comments

Comments
 (0)