[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#736382: UDD: RSS feed of DMD contains content-type header in body, hence fails to be parsed



Package: qa.debian.org
User: qa.debian.org@packages.debian.org
Usertags: udd

Hi,

this is a kinda follow-up to http://www.lucas-nussbaum.net/blog/?p=805

I tried to use http://udd.debian.org/dmd/feed/?email1=abe@debian.org
in Liferea, but Liferea throws parse errors, because there seem to be
a blank line in the http headers (or parts of the header in the body,
depending on the viewpoint :-):

$ GET -SUse http://udd.debian.org/dmd/feed/\?email1\=abe@debian.org | head -20 | cat -n
     1  GET http://udd.debian.org/dmd/feed/?email1=abe@debian.org
     2  User-Agent: lwp-request/6.03 libwww-perl/6.05
     3  
     4  200 OK
     5  Connection: close
     6  Date: Wed, 22 Jan 2014 23:35:26 GMT
     7  Server: Apache
     8  Vary: Accept-Encoding
     9  Content-Type: text/html
    10  Client-Date: Wed, 22 Jan 2014 23:35:28 GMT
    11  Client-Peer: 206.12.19.141:80
    12  Client-Response-Num: 1
    13  Client-Transfer-Encoding: chunked
    14  
    15  Content-type: text/xml
    16  
    17  <?xml version="1.0" encoding="UTF-8"?>
    18  <rss version="2.0"
    19    xmlns:content="http://purl.org/rss/1.0/modules/content/";
    20    xmlns:dc="http://purl.org/dc/elements/1.1/";

Line 14 should be removed so that line 15 still counts as header and
not as body. Maybe just an "\n" too many somewhere.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


Reply to: