diff --git a/src/TurboLinks.Net/TurboLinks.Net.csproj b/src/TurboLinks.Net/TurboLinks.Net.csproj
index c753db0..09b6918 100644
--- a/src/TurboLinks.Net/TurboLinks.Net.csproj
+++ b/src/TurboLinks.Net/TurboLinks.Net.csproj
@@ -3,7 +3,7 @@
Add support for Turbolinks
Tommy Parnell
- netstandard1.6
+ netstandard2.0
TurboLinks.Net
TurboLinks.Net
TurboLinks Middlewear
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/src/TurboLinks.Net/TurboLinks.cs b/src/TurboLinks.Net/TurboLinks.cs
index b0129e3..6b27387 100644
--- a/src/TurboLinks.Net/TurboLinks.cs
+++ b/src/TurboLinks.Net/TurboLinks.cs
@@ -24,13 +24,13 @@ namespace TurboLinks.Net
var request = context.Request;
var response = context.Response;
- if(!string.IsNullOrWhiteSpace(request.Headers["X-XHR-Referer"]))
+ if (!string.IsNullOrWhiteSpace(request.Headers["X-XHR-Referer"]))
{
context.Response.Cookies.Append("request_method", request.Method, new CookieOptions { HttpOnly = false });
- if(context.Response.StatusCode == 301 || context.Response.StatusCode == 302)
+ if (context.Response.StatusCode == 301 || context.Response.StatusCode == 302)
{
var uri = new Uri(response.Headers["Location"]);
- if(uri.Host.Equals(request.Host.Value))
+ if (uri.Host.Equals(request.Host.Value))
{
response.Headers["X-XHR-Redirected-To"] = response.Headers["Location"];
}
@@ -45,9 +45,7 @@ namespace TurboLinks.Net
public static class BuilderExtension
{
- public static void UseTurboLinks(this IApplicationBuilder app)
- {
- app.UseMiddleware();
- }
+ public static IApplicationBuilder UseTurboLinks(this IApplicationBuilder app) => app.UseMiddleware();
+
}
}
\ No newline at end of file
diff --git a/src/TurboLinksExample/Startup.cs b/src/TurboLinksExample/Startup.cs
index 71295a2..803b96f 100644
--- a/src/TurboLinksExample/Startup.cs
+++ b/src/TurboLinksExample/Startup.cs
@@ -40,7 +40,6 @@ namespace TurboLinksExample
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
- app.UseBrowserLink();
}
else
{
diff --git a/src/TurboLinksExample/TurboLinksExample.csproj b/src/TurboLinksExample/TurboLinksExample.csproj
index 5d17d4e..6c5ee6f 100644
--- a/src/TurboLinksExample/TurboLinksExample.csproj
+++ b/src/TurboLinksExample/TurboLinksExample.csproj
@@ -1,13 +1,9 @@
- netcoreapp1.0
+ netcoreapp2.1
true
TurboLinksExample
- Exe
- TurboLinksExample
- 1.0.4
- $(PackageTargetFallback);dotnet5.6;portable-net45+win8
@@ -21,19 +17,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -41,8 +25,4 @@
-
-
-
-