Skip to content

Commit

Permalink
Merge pull request #44 from nlnwa/fix-strange-url-encoding
Browse files Browse the repository at this point in the history
No special treatment of '&' character in index response
  • Loading branch information
maeb authored Sep 17, 2021
2 parents 797b347 + 7a0e366 commit 1e02dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/warcserver/cdxserverapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func cdxjToPywbJson(record *cdx.Cdx) *pywbJson {
js := &pywbJson{
Urlkey: record.Ssu,
Timestamp: record.Sts,
Url: strings.ReplaceAll(record.Uri, "&", "%26"),
Url: record.Uri,
Mime: record.Mct,
Status: record.Hsc,
Digest: record.Sha,
Expand Down

0 comments on commit 1e02dba

Please sign in to comment.