mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 14:35:07 +00:00
check the error
This commit is contained in:
@@ -48,6 +48,7 @@ func Handler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make new request
|
// make new request
|
||||||
|
log.Printf("Calling: %v", apiURL+"?shortURL="+uri.String())
|
||||||
req, err := http.NewRequest("GET", apiURL+"?shortURL="+uri.String(), nil)
|
req, err := http.NewRequest("GET", apiURL+"?shortURL="+uri.String(), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), 500)
|
http.Error(w, err.Error(), 500)
|
||||||
|
|||||||
Reference in New Issue
Block a user