Skip to content

Commit

Permalink
Fix export CreateFormReader function
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinku-Chen committed Oct 25, 2024
1 parent 03c5a5a commit fad6e96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ func SanitizeFileName(fileName string) string {
), "-", "_", -1)
}

// CreateFormReader creates a form reader from a map.
func CreateFormReader(data map[string]string) io.Reader {
form := url.Values{}
for k, v := range data {
Expand Down

0 comments on commit fad6e96

Please sign in to comment.