mirror of
https://github.com/eolinker/apinto
synced 2025-10-06 09:17:45 +08:00
templater
This commit is contained in:
@@ -52,7 +52,7 @@ func (f *finishHttp) Finish(ctx eoscContext.EoContext) error {
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
target.finish()
|
||||
target.FastFinish()
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ func (ctx *Context) RequestId() string {
|
||||
}
|
||||
|
||||
//Finish finish
|
||||
func (ctx *Context) finish() {
|
||||
func (ctx *Context) FastFinish() {
|
||||
if ctx.response.responseError != nil {
|
||||
ctx.fastHttpRequestCtx.SetStatusCode(504)
|
||||
ctx.fastHttpRequestCtx.SetBodyString(ctx.response.responseError.Error())
|
||||
|
Reference in New Issue
Block a user