annando / salmon-protocol

Automatically exported from code.google.com/p/salmon-protocol
0 stars 0 forks source link

Content-type for host-meta is wrong #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The host-meta file is served with the wrong content-type, which may break some 
parsers.

What steps will reproduce the problem?
1.  dawnrider:activity-streams-perl sivy$ curl -i 
"http://atollia.appspot.com/.well-known/host-meta"
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Date: Mon, 09 Aug 2010 17:18:18 GMT
Server: Google Frontend
Transfer-Encoding: chunked

<?xml version='1.0' encoding='UTF-8'?>
<!-- NOTE: this host-meta end-point is a pre-alpha work in progress.   Don't 
rely on it. -->
<!-- Please follow the list at http://groups.google.com/group/webfinger -->
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'
     xmlns:hm='http://host-meta.net/xrd/1.0'>
     <hm:Host xmlns='http://host-meta.net/xrd/1.0'>atollia.appspot.com</hm:Host>
     <Link rel='lrdd'
           template='http://atollia.appspot.com/user?q={uri}'>
        <Title>Resource Descriptor</Title>
     </Link>
</XRD>

What is the expected output? What do you see instead?

Content-Type: application/xml+xrd; charset=utf-8

Original issue reported on code.google.com by steve...@gmail.com on 9 Aug 2010 at 5:20