Fixed little bug for url prefix
This commit is contained in:
parent
c375e0ccd7
commit
4a6317dda9
@ -11,7 +11,7 @@ start() {
|
|||||||
--security-opt=no-new-privileges \
|
--security-opt=no-new-privileges \
|
||||||
-p 127.0.0.1:8080:8080 \
|
-p 127.0.0.1:8080:8080 \
|
||||||
-v pastabble-v:/app/data \
|
-v pastabble-v:/app/data \
|
||||||
-e PREFIX "https://paste.plabble.org" \
|
-e PREFIX="https://paste.plabble.org" \
|
||||||
pastabble'
|
pastabble'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ fn register_link(links: &Bucket<String,String>, req: &Request, id: Option<String
|
|||||||
|
|
||||||
// Return url with key
|
// Return url with key
|
||||||
let url = if prefix.is_some() {
|
let url = if prefix.is_some() {
|
||||||
format!("{}/{}", prefix.unwrap(), key)
|
format!("{}/to/{}", prefix.unwrap(), key)
|
||||||
} else {
|
} else {
|
||||||
key
|
key
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user