Skip to content

Commit bf8a43f

Browse files
committed
fix: fix the error that the maximum length of http rule response body is 191 when using mysql
1 parent 284db90 commit bf8a43f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

bin/revsuit_linux_amd64

27.4 MB
Binary file not shown.

pkg/rhttp/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type Rule struct {
1515
rule.BaseRule `yaml:",inline"`
1616
ResponseStatusCode string `gorm:"index;default:200;not null" form:"response_status_code" json:"response_status_code" yaml:"response_status_code"`
1717
ResponseHeaders database.MapField `form:"response_headers" json:"response_headers" yaml:"response_headers"`
18-
ResponseBody string `gorm:"default:Hello RevSuit!" form:"response_body" json:"response_body" yaml:"response_body"`
18+
ResponseBody string `gorm:"type:longtext" form:"response_body" json:"response_body" yaml:"response_body"`
1919
}
2020

2121
func (Rule) TableName() string {

0 commit comments

Comments
 (0)