You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ since pathMetadata is based on maybeResolvedImPath, if the path is indeed resolved to the final /ipfs/cid, we will produce an invalid X-Ipfs-Roots header that does not include logical parents from immutableContentPath.
Example:
immutableContentPath – /ipfs/cid/foo/bar
maybeResolvedImPath – /ipfs/bar-cid
X-Ipfs-Roots
expected: cid, foo-cid, bar-cid
produced: bar-cid
Idea
Maybe some struct that gets passed around, like:
typerequestDatastruct {
// Defined for all requests.begin time.Timelogger*zap.SugaredLoggercontentPath ipath.PathcontentTypestringcontentTypeParamsmap[string]string// Defined for non IPNS Record requests.immutablePathImmutablePath// Defined if resolution has already happened.pathMetadata*ContentPathMetadataresolvedPath*ImmutablePath
}
func (rq*requestData) maybeResolvedPath() ImmutablePath {
ifrq.resolvedPath!=nil {
return*rq.resolvedPath
}
returnrq.immutablePath
}
The content you are editing has changed. Please copy your edits and refresh the page.
Extracted from #176 (comment) to avoid blocking #176.
Idea
Maybe some struct that gets passed around, like:
Tasks
The text was updated successfully, but these errors were encountered: