Skip to content

Commit

Permalink
fix: fix the error that the maximum length of http rule response body…
Browse files Browse the repository at this point in the history
… is 191 when using mysql
  • Loading branch information
Li4n0 committed Jun 1, 2023
1 parent 284db90 commit bf8a43f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added bin/revsuit_linux_amd64
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/rhttp/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf8a43f

Please sign in to comment.