Skip to content

Commit

Permalink
fix(gatsby-plugin-sharp): fix image url decoding for lazy images (#28576
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vladar authored Dec 10, 2020
1 parent 1b97f5f commit 592d3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-sharp/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports.onCreateDevServer = async ({ app, cache, reporter }) => {
finishProgressBar()

app.use(async (req, res, next) => {
const decodedURI = decodeURI(req.url)
const decodedURI = decodeURIComponent(req.path)
const pathOnDisk = path.resolve(path.join(`./public/`, decodedURI))

if (await pathExists(pathOnDisk)) {
Expand Down

0 comments on commit 592d3d1

Please sign in to comment.