Skip to content

Commit d7efb54

Browse files
author
novnc
committed
Remove version specification from docker-compose.yml and fix URL formatting in HTTP server
1 parent 4d56bb4 commit d7efb54

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
# MongoDB Database
53
mongodb:

internal/server/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (s *HTTPServer) handleCreatePaste(w http.ResponseWriter, r *http.Request) {
295295
}
296296

297297
// Generate URL
298-
url := fmt.Sprintf("%s/%s", s.config.GetBaseURL(), slugStr)
298+
url := fmt.Sprintf("%s%s", s.config.GetBaseURL(), slugStr)
299299

300300
// Return URL (with newline for terminal compatibility)
301301
w.Header().Set("Content-Type", "text/plain")

0 commit comments

Comments
 (0)