Skip to content

Commit

Permalink
escape url. Buf when company name contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Jan 4, 2022
1 parent d9f9d37 commit d00f8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkedin/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func (options *Options) getCompany() linkedinListCompany {
var companies linkedinListCompany

url := fmt.Sprintf(LINKEDIN_LIST_COMPANY, options.Company)
url := fmt.Sprintf(LINKEDIN_LIST_COMPANY, url.QueryEscape(options.Company))
header := make(map[string]string)
header["csrf-token"] = "ajax:1337"
header["x-restli-protocol-version"] = "2.0.0"
Expand Down

0 comments on commit d00f8cc

Please # to comment.