Skip to content

Commit fdbe2bd

Browse files
committed
fbdocs: allow 2 redirects when connecting to freebasic.net wiki
1 parent 1c91dcf commit fdbe2bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/libfbdoc/CHttpStream.bas

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ namespace fb
152152

153153
curl_easy_setopt( curl, CURLOPT_URL, url )
154154

155-
'' Follow at most one redirection to allow for url rewrite on server side
156-
curl_easy_setopt( curl, CURLOPT_FOLLOWLOCATION, 1 )
157-
curl_easy_setopt( curl, CURLOPT_MAXREDIRS, 1 )
155+
'' Follow at most two redirection to allow for url rewrite
156+
'' and page redirect on service side
157+
curl_easy_setopt( curl, CURLOPT_FOLLOWLOCATION, 2 )
158+
curl_easy_setopt( curl, CURLOPT_MAXREDIRS, 2 )
158159

159160
curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, @recv_cb )
160161
curl_easy_setopt( curl, CURLOPT_WRITEDATA, @ctx->stream )

0 commit comments

Comments
 (0)