Skip to content

Commit

Permalink
fix(gatsby-source-contentful): use request url for base64 image cache…
Browse files Browse the repository at this point in the history
… key (#22745)

* fix(gatsby-source-contentful): use request url for base64 image cache key

* Apply suggestions from code review

Co-authored-by: Ward Peeters <ward@coding-tech.com>
  • Loading branch information
disintegrator and wardpeet authored Apr 2, 2020
1 parent 6c4a979 commit cfd2384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const getBase64Image = imageProps => {

// Note: sha1 is unsafe for crypto but okay for this particular case
const shasum = crypto.createHash(`sha1`)
shasum.update(`requestUrl`)
shasum.update(requestUrl)
const urlSha = shasum.digest(`hex`)

// TODO: Find the best place for this step. This is definitely not it.
Expand Down

0 comments on commit cfd2384

Please sign in to comment.