Looks like this issue is known, and has already been solved. I expect this 
to work for me too.

http://grokbase.com/p/gg/mojolicious/1325y9jdcj/request-uri-not-being-parsed-correctly-in-cgi-mode



On Thursday, June 5, 2014 5:42:43 PM UTC, [email protected] wrote:
>
>
>
> On Thursday, June 5, 2014 5:32:44 PM UTC, sri wrote:
>>
>> Further tinkering confirms that the routing engine is clearly looking at 
>>> 'URL:" not REQUEST_URI  Is there a fix?
>>>
>>
>> The routing engine couldn't care less about CGI-isms, all that matters is 
>> what ends up in $c->req->url.
>>
>> --
>> sebastian
>>
>
> How would one set this in the context of a programme like this sample? 
>
>  
>
> use Mojolicious::Lite;
> # GET /helloget '/hello' => sub {
>   my $self = shift;
>   $self->render(text => 'Hello World!');};
> # PUT /hello
> put '/hello' => sub {
>   my $self = shift;
>   my $size = length $self->req->body;
>   $self->render(text => "You uploaded $size bytes to /hello.");};
> # GET|POST|PATCH /bye
> any [qw(GET POST PATCH)] => '/bye' => sub {
>   my $self = shift;
>   $self->render(text => 'Bye World!');};
> # * /whatever
> any '/whatever' => sub {
>   my $self   = shift;
>   my $method = $self->req->method;
>   $self->render(text => "You called /whatever with $method.");};
>
> app->start;
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to