Revision b9a6179c
Added by koszko over 1 year ago
| common/patterns.js | ||
|---|---|---|
| 192 | 192 |
|
| 193 | 193 |
function reconstruct_url(deco) |
| 194 | 194 |
{
|
| 195 |
const domain = deco.domain.join(".");
|
|
| 195 |
const domain = (deco.domain || []).join(".");
|
|
| 196 | 196 |
const path = ["", ...deco.path].join("/");
|
| 197 | 197 |
const trail = deco.trailing_slash ? "/" : ""; |
| 198 | 198 |
return `${deco.proto}://${domain}${path}${trail}`;
|
Also available in: Unified diff
fix payload creation for file:// URLs