File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,7 +275,11 @@ module Core =
275275 /// <param name =" next " ></param >
276276 /// <param name =" ctx " ></param >
277277 /// <returns >A Giraffe <see cref =" HttpHandler " /> function which can be composed into a bigger web application.</returns >
278- let safeRedirectToExt ( permanent : bool ) ( location : string ) ( invalidRedirectHandler : HttpHandler option ) : HttpHandler =
278+ let safeRedirectToExt
279+ ( permanent : bool )
280+ ( location : string )
281+ ( invalidRedirectHandler : HttpHandler option )
282+ : HttpHandler =
279283 fun ( _next : HttpFunc ) ( ctx : HttpContext ) ->
280284 if isValidRedirectUrl ctx location then
281285 ctx.Response.Redirect( location, permanent)
@@ -301,7 +305,8 @@ module Core =
301305 /// <param name =" next " ></param >
302306 /// <param name =" ctx " ></param >
303307 /// <returns >A Giraffe <see cref =" HttpHandler " /> function which can be composed into a bigger web application.</returns >
304- let safeRedirectTo ( permanent : bool ) ( location : string ) : HttpHandler = safeRedirectToExt permanent location None
308+ let safeRedirectTo ( permanent : bool ) ( location : string ) : HttpHandler =
309+ safeRedirectToExt permanent location None
305310
306311 /// <summary >
307312 /// Redirects to a different location with a ` 302 ` or ` 301 ` (when permanent) HTTP status code.
You can’t perform that action at this time.
0 commit comments