Commit b1ffa4d0 authored by Cloud User's avatar Cloud User

use fiber redirect

parent b37d1ec3
......@@ -1261,11 +1261,12 @@ func syncOrAsyncReturn(c *fiber.Ctx, resAsPb pbUpstream.TaskResponse, reqTaskId
if redirectCode {
if k == "Location" {
//c.Response().Header.SetL
c.Redirect(v, int(resAsPb.TaskResultCode))
//c.Response().Header.SetL
//c.Response().Header.Set
//c.Response().Header.SetContentType(v)
c.Set("Location", v)
//c.Set("Location", v)
}
}
}
......@@ -1273,9 +1274,9 @@ func syncOrAsyncReturn(c *fiber.Ctx, resAsPb pbUpstream.TaskResponse, reqTaskId
}
}
if redirectCode {
return redirectReturn(c, resAsPb)
}
// if redirectCode {
// return redirectReturn(c, resAsPb)
// }
return Return(c, resAsPb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment