You also have so set the downloadable flag
Paul
On 14-Mar-09, at 3:42 PM, Ty wrote:
> Hi,
> Restlet (1.2M) is refusing to set the content-location header and I
> can't seem to find a method that will let me set it. Does anyone
> know how to set the content-location header?
>
> Here's the code that I have tried:
>
> // *** Try setting the Content-Location header: restlet refuses with
> a log warning! ***
> Series<Parameter> headers = new Form();
> headers.add("Content-Location", request.getOriginalRef().toString());
> response.getAttributes().put("org.restlet.http.headers", headers);
>
> // Set the location header: this works
> response.setLocationRef(locaationURI);
>
> It seems like my code is working but restlet doesn't want to let me
> set the content-location header. It wants me to use an API method;
> but I can't find one. Any suggestions?
>
> Thanks,
> T
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1323618
Paul Austin
President/CEO
Revolution Systems Inc.
+1 (604) 288-4304 x201
www.revolsys.com
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1326815