zum ersten gilt das was alex gerade geschrieben hat, zum aderen warum
gibst du ein wert protocol mit https beim rendern mit. das hat keine
Auswirkung.

mfg marco



Am 16. Dezember 2010 14:37 schrieb Alexander Melle <[email protected]>:
> Hallo,
> ich habe folgendes Setup : Nginx - Proxy  mit SSL und thin
> nun bin ich dabei eine API für eine Mobilanwendung zu erstellen und es
> existiert ein "mobile" controller.
> im controller gibt es folgende methode:
> def branding_colors
>    colors = {
>      "red" => "0.92156862745098",
>      "green" => "0.945098039215686",
>      "blue" => "0.952941176470588"
>    }
>    render :json => colors, :protocol => 'https://'
>  end
>
> der Aufruf folge über https://mydomain.de/mobile/branding_colors
> ich bekomme auch die korrekte Antwort zurück:
>
> {"green": "0.945098039215686", "blue": "0.952941176470588", "red":
> "0.92156862745098"}
>
> In der Logdatei gib es aber folgenden Eintrag:
> Processing MobileController#branding_colors (for 192.168.19.65 at 2010-12-16
> 15:11:50) [GET]
>  Session ID: 6be291ade8cb8e360aabd28f19c71073
>  Parameters: {"action"=>"branding_colors", "controller"=>"mobile"}
> green0.945098039215686blue0.952941176470588red0.92156862745098
> Completed in 0.00478 (209 reqs/sec) | Rendering: 0.00065 (13%) | DB: 0.00000
> (0%) | 200 OK [http://mydomain.de/mobile/branding_colors]
>
> Warum logt er http://mydomain....... statt https://mydomain..........??
> Gruss
> Alexander
>
> _______________________________________________
> rubyonrails-ug mailing list
> [email protected]
> http://mailman.headflash.com/listinfo/rubyonrails-ug
>
>
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an