You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Daniel Gruno (JIRA)" <ji...@apache.org> on 2015/12/06 14:13:11 UTC

[jira] [Resolved] (INFRA-10240) closer.lua: add option to return just the preferred server

     [ https://issues.apache.org/jira/browse/INFRA-10240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Gruno resolved INFRA-10240.
----------------------------------
    Resolution: Fixed

done, simply add 'preferred=true' to the query string and it'll spit that out as a string.

> closer.lua: add option to return just the preferred server
> ----------------------------------------------------------
>
>                 Key: INFRA-10240
>                 URL: https://issues.apache.org/jira/browse/INFRA-10240
>             Project: Infrastructure
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>            Reporter: Sebb
>            Assignee: Daniel Gruno
>
> The closer.lua script already supports output in JSON format (?asjson=1)
> JSON is not particularly difficult to parse, but it seems to me that it is quite likely that many projects are just interested in the preferred server URL.
> It might therefore be useful to add an option to return this only?
> This would reduce the work by the server and the client.
> For example, the syntax could be:
> http://www.apache.org/something.cgi?action=preferred
> Note that it is already possible to get this info as follows:
> http://www.apache.org/anything.cgi?action=download&filename=
> The preferred URL will be returned as the 'Location" header in a 302 response. However this is not ideal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)