Skip to content

Commit f4009d4

Browse files
committed
Fix typo in handler tineout response body
1 parent 310d6a7 commit f4009d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

handler/handler.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ func Handler(c web.Context) error {
6161
case r := <-result:
6262
return c.JSON(http.StatusOK, map[string]string{"output": r})
6363
case <-c.Done():
64-
return c.JSON(http.StatusGatewayTimeout, map[string]string{"messagde": "timeout"})
64+
return c.JSON(http.StatusGatewayTimeout, map[string]string{"message": "timeout"})
6565
}
66-
6766
}
6867

6968
func buildTask(er ExecRequest) (input.Task, error) {

0 commit comments

Comments
 (0)