fix: fix the error that the maximum length of http rule response body is 191 when using mysql

This commit is contained in:
Li4n0
2023-06-02 00:36:36 +08:00
parent 284db90c16
commit bf8a43fa87
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -15,7 +15,7 @@ type Rule struct {
rule.BaseRule `yaml:",inline"`
ResponseStatusCode string `gorm:"index;default:200;not null" form:"response_status_code" json:"response_status_code" yaml:"response_status_code"`
ResponseHeaders database.MapField `form:"response_headers" json:"response_headers" yaml:"response_headers"`
ResponseBody string `gorm:"default:Hello RevSuit!" form:"response_body" json:"response_body" yaml:"response_body"`
ResponseBody string `gorm:"type:longtext" form:"response_body" json:"response_body" yaml:"response_body"`
}
func (Rule) TableName() string {