Bug#736382: UDD: RSS feed of DMD contains content-type header in body, hence fails to be parsed
Control: reopen -1
Hi Christophe,
Christophe Siraut wrote to 736382-done@bugs.debian.org:
> > 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.
>
> It seems we needed to get rid of lines 15 and 16.
I disagree. "Content-type: text/xml" should be sent, but not in the
body, i.e. the line which should be primarily removed is the blank
line at line 14.
"Content-type: text/xml" is IMHO necessary to set a proper content
type. It should override the following line in the headers:
9 Content-Type: text/html
By the way, the issue doesn't seem to be fixed yet as I see no change
at all so far:
$ GET -SUse http://udd.debian.org/dmd/feed/\?email1\=abe%40debian.org | head -20 | cat -n
1 GET http://udd.debian.org/dmd/feed/?email1=abe%40debian.org
2 User-Agent: lwp-request/6.03 libwww-perl/6.04
3
4 200 OK
5 Connection: close
6 Date: Thu, 23 Jan 2014 17:54:25 GMT
7 Server: Apache
8 Vary: Accept-Encoding
9 Content-Type: text/html
10 Client-Date: Thu, 23 Jan 2014 17:54: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/"
Hence reopening.
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: