Comments (4)
I don't understand you, if there's really a bug please prepare a more detailed report with real test case, like https://github.com/kraih/mojo/blob/master/t/mojo/message.t#L1349.
from mojo.
- SCRIPT_NAME eq REQUEST_URI
$req = Mojo::Message::Request->new;
$req->parse(
SCRIPT_NAME => '/diag/upload',
SERVER_NAME => '127.0.0.1',
SERVER_ADMIN => '[no address given]',
PATH_INFO => '/diag/upload',
HTTP_CONNECTION => 'Keep-Alive',
REQUEST_METHOD => 'POST',
CONTENT_LENGTH => '135',
SCRIPT_FILENAME => '/tmp/SnLu1cQ3t2/test.fcgi',
SERVER_SOFTWARE => 'Apache/2.2.14 (Unix) mod_fastcgi/2.4.2',
QUERY_STRING => '',
REMOTE_PORT => '58232',
HTTP_USER_AGENT => 'Mojolicious (Perl)',
SERVER_PORT => '13028',
SERVER_SIGNATURE => '',
REMOTE_ADDR => '127.0.0.1',
CONTENT_TYPE => 'multipart/form-data; boundary=8jXGX',
SERVER_PROTOCOL => 'HTTP/1.1',
PATH => '/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin',
REQUEST_URI => '/diag/upload',
GATEWAY_INTERFACE => 'CGI/1.1',
SERVER_ADDR => '127.0.0.1',
DOCUMENT_ROOT => '/tmp/SnLu1cQ3t2',
PATH_TRANSLATED => '/tmp/test.fcgi/diag/upload',
HTTP_HOST => '127.0.0.1:13028'
);
print Dumper($req->url);
$req->url->path is empty, but this parameters need for correct routing.
- If SCRIPT_NAME is empty
$req = Mojo::Message::Request->new;
$req->parse(
SCRIPT_NAME => '',
SERVER_NAME => '127.0.0.1',
SERVER_ADMIN => '[no address given]',
PATH_INFO => '/diag/upload',
HTTP_CONNECTION => 'Keep-Alive',
REQUEST_METHOD => 'POST',
CONTENT_LENGTH => '135',
SCRIPT_FILENAME => '/tmp/SnLu1cQ3t2/test.fcgi',
SERVER_SOFTWARE => 'Apache/2.2.14 (Unix) mod_fastcgi/2.4.2',
QUERY_STRING => '',
REMOTE_PORT => '58232',
HTTP_USER_AGENT => 'Mojolicious (Perl)',
SERVER_PORT => '13028',
SERVER_SIGNATURE => '',
REMOTE_ADDR => '127.0.0.1',
CONTENT_TYPE => 'multipart/form-data; boundary=8jXGX',
SERVER_PROTOCOL => 'HTTP/1.1',
PATH => '/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin',
REQUEST_URI => '/diag/upload',
GATEWAY_INTERFACE => 'CGI/1.1',
SERVER_ADDR => '127.0.0.1',
DOCUMENT_ROOT => '/tmp/SnLu1cQ3t2',
PATH_TRANSLATED => '/tmp/test.fcgi/diag/upload',
HTTP_HOST => '127.0.0.1:13028'
);
print Dumper($req->url);
Routing work correct
from mojo.
Thanks, thats exactly what i needed.
But i'm afraid i have to tell you that everything works just as expected and spec compliant, so you might just be misunderstanding something.
from mojo.
Maybe. Its not critical.
from mojo.
Related Issues (20)
- One t-test fails, Perl 5.38 on Windows 10 HOT 7
- The image helper now produces absolute paths HOT 7
- Mojolicious::Lite silently ignores controller configurations due to missing default namespaces HOT 2
- Morbo issues with Mojolicious 9.34 (change in Mojo/Server.pm) HOT 1
- t/mojo/log.t fails when $ENV{PERL_UNICODE} =~ /D/
- can't run mojo file
- running mojo files HOT 2
- TLS Fingerprinting
- Use of uninitialized value $cb in method lookup at Mojo/Reactor/Poll.pm HOT 1
- Can't locate object method "" via package "Mojolicious::Validator::Validation"
- Request with basic auth does not work when passwords include umlaut HOT 4
- Nesting layouts fails
- URL parsed from a serialised request is never absolute
- Websocket - 101 Switching Protocols
- Feeding render with Mojo::ByteStream is broken when gzipping is triggered HOT 4
- Missing SECURITY.md HOT 5
- Minion UI broken by jQuery removal in latest Mojolicious update HOT 2
- Commands error when topic variable set to undef in compilation HOT 3
- mingw-w64 on MSYS2 MINGW64 needs IO 1.51+ to pass tests of Mojolicious HOT 2
- Feature request: Support session cookies with "Partitioned" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.