Skip to content

Commit

Permalink
avoid adding extra /
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantmonkey committed Oct 16, 2015
1 parent a716d47 commit a4a177b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linx.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func linx(config *Config, filepath string, ttl int, deleteKey string) {
}
reader := progress.NewProgressReader(filename, bufio.NewReader(f), stat.Size())

req, err := http.NewRequest("PUT", config.Server+"/upload", reader)
req, err := http.NewRequest("PUT", config.Server+"upload", reader)
if err != nil {
log.Fatalf("Failed to create request: %v\n", err)
}
Expand Down

0 comments on commit a4a177b

Please sign in to comment.