mirror of https://github.com/adamdruppe/arsd.git
whatever the cast is needed anyway lol
This commit is contained in:
parent
7bb185151c
commit
d40fd41194
8
web.d
8
web.d
|
@ -1005,10 +1005,8 @@ void run(Provider)(Cgi cgi, Provider instantiation, int pathInfoStartingPoint =
|
||||||
|
|
||||||
form = doc.requireSelector!Form("form");
|
form = doc.requireSelector!Form("form");
|
||||||
} else {
|
} else {
|
||||||
Parameter[] params;
|
Parameter[] params = cast(Parameter[]) fun.parameters.dup;
|
||||||
foreach(i, p; fun.parameters) {
|
foreach(i, p; fun.parameters) {
|
||||||
// ugh
|
|
||||||
params ~= cast(Parameter) p;
|
|
||||||
string value = "";
|
string value = "";
|
||||||
if(p.name in cgi.get)
|
if(p.name in cgi.get)
|
||||||
value = cgi.get[p.name];
|
value = cgi.get[p.name];
|
||||||
|
@ -1992,6 +1990,10 @@ string toUrlName(string name) {
|
||||||
/// turns camelCase into human presentable capitalized words with spaces
|
/// turns camelCase into human presentable capitalized words with spaces
|
||||||
string beautify(string name) {
|
string beautify(string name) {
|
||||||
string n;
|
string n;
|
||||||
|
|
||||||
|
if(name.length == 0)
|
||||||
|
return name;
|
||||||
|
|
||||||
n ~= toUpper(name[0..1]);
|
n ~= toUpper(name[0..1]);
|
||||||
|
|
||||||
dchar last;
|
dchar last;
|
||||||
|
|
Loading…
Reference in New Issue