Skip to content

Commit

Permalink
filter illegal type
Browse files Browse the repository at this point in the history
  • Loading branch information
mayunbao committed Dec 3, 2020
1 parent 758a789 commit e1a6852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/spider/cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewCloudflareSpider(size int) *CloudflareSpider {

func (f *CloudflareSpider) Do(request Request) (Response, error) {
pattern := "{\n url `css(\"form\");attr(\"action\")`\n method `css(\"form\");attr(\"method\")`\n params `css(\"input\")`[{\n name `attr(\"name\")`\n value `attr(\"value\")`\n\n}]\n\n}"
shtml := NewShtmlSpider(1024)
shtml := NewShtmlSpider(f.size)
resp, err := shtml.Do(request)
if err != nil {
return Response{}, err
Expand Down

0 comments on commit e1a6852

Please sign in to comment.