Skip to content

Commit 1d0a2c8

Browse files
Update service.go
1 parent fa8a3b7 commit 1d0a2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pagination/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func HandleURL(w http.ResponseWriter, r *http.Request) {
136136
ResultArray: make([]int, 0),
137137
}
138138

139-
if attempts > 0 {
139+
if attempts > 1 {
140140
baseURL := fmt.Sprintf("%s://%s%s", r.URL.Scheme, r.Host, r.URL.Path)
141141
if r.URL.Scheme == "" { // Fallback if Scheme is not available
142142
baseURL = fmt.Sprintf("http://%s%s", r.Host, r.URL.Path)

0 commit comments

Comments
 (0)