Unverified Commit 817707d6 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1107 from ethereum/fixSwarmPublish

use normalize path to retrieve content
parents fa6d6938 244f0dd8
...@@ -28,6 +28,7 @@ class BasicReadOnlyExplorer { ...@@ -28,6 +28,7 @@ class BasicReadOnlyExplorer {
} }
get (path, cb) { get (path, cb) {
if (this.normalizedNames[path]) path = this.normalizedNames[path] // ensure we actually use the normalized path from here
var unprefixedPath = this.removePrefix(path) var unprefixedPath = this.removePrefix(path)
var content = this.files[unprefixedPath] var content = this.files[unprefixedPath]
if (!content) { if (!content) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment