Reattempt download when fetch gets a 301 - during Registration

Поиск
Список
Период
Сортировка
От Robins Tharakan
Тема Reattempt download when fetch gets a 301 - during Registration
Дата
Msg-id CAEP4nAxwsrXhj9rZrzYEaDyavG8_bctMfdd3325poO17fh_cMg@mail.gmail.com
обсуждение исходный текст
Список pgsql-www
Hi,

Attached is a small patch that re-attempts a download when the first fetch attempt during new Feed Registration gets a 301. 

The use-case was when I was trying to register my blog for Planet, I got a abc.blogspot.com feed URL whereas, in reality it was redirecting to abc.com URL instead (because I had configured BlogSpot to do so). 

So although abc.blogspot.com was working on a browser (since it redirects on a 301) the Feed registration page failed with a 'Internal Server Error: Attempt to download blog feed returned status 301'.

I think this is a recoverable error, and so the patch.

NB: Am (very) new to Python, so apologies for some obvious misses.

--
Robins Tharakan
Вложения

В списке pgsql-www по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: www.postgresql.org is having problems
Следующее
От: Jim Nasby
Дата:
Сообщение: git.postgresql.org not finding a commit