fix wrong substitution

This commit is contained in:
idk
2019-03-16 14:01:40 -04:00
parent bbbdddf4b3
commit b779b0f58c
2 changed files with 3 additions and 3 deletions

View File

@ -33,5 +33,5 @@ Adding this to your sources.list.d will configure apt to seek updates to
ppa.launchpad.net/i2p-maintainers from a caching proxy at the b32 address:
```h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p```
deb i2p://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
deb-src i2p://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
deb i2phttp://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main
deb-src i2phttp://h2knzawve56vtiimbdsl74bmbuw7xr65xhgrdjtjnbfxxw4hsqlq.b32.i2p/ppa.launchpad.net/i2p-maintainers/i2p/ubuntu bionic main

View File

@ -193,7 +193,7 @@ func fetch(c chan<- *Message, m *Message) {
// TODO: Fix bug with appending to existing files
// TODO: implement range requests if file already exists
realURI := strings.TrimPrefix(uri, "i2p://")
realURI := strings.Replace(uri, "i2p://", "http://", 1)
resp, err := http.Get(realURI)
if err != nil {