D2 & Web-Framework

Adam D. Ruppe destructionator at gmail.com
Thu Jul 14 17:26:50 PDT 2011


Nick Sabalausky wrote:
> (Not sure why IIS changes the redirect's "/" to "localstart.asp",
> probably just IIS trying to be "smart", but I usually only use IIS > locally, so
I don't really care right now).

It's possible I messed up... the line of code is specifically:

        cgi.setResponseLocation(cgi.requestUri ~ "/");

which is supposed add the slash. But maybe my requestUri member
is wrong on IIS, so it saw just the slash, and that redirected to the
other thing.


Hmmmm, a quick web search tells me that IIS doesn't set REQUEST_URI
the same way as Apache, so this is probably a bug in cgi.d. I
thought that was a standard, but it looks like it might be an
Apache extension.

Huh, I've gotta think about this.

> Oh, one other thing I noticed: With DMD 2.054 banning implicit
> switch/case fallthrough, it pointed out an implicit fallthrough
> in dom.d at line 2641

That's interesting... I updated my dmd but didn't see this....

but yes that's definitely a bug, also in my copy of the code.
Add a break to it.

You might want to grab a new copy of dom.d. I think your copy is
pretty old in general, since that line number is a few hundred
lines different than my copy.

http://arsdnet.net/dcode/dom.d

The newer one has stuff like requireSelector and requireElementById
that we discussed a while ago, among other things.

(that dcode folder is updated on random whims. I do changes for
myself in another location then copy it over usually when I talk
about it on the newsgroup.)


Anywho.

That's embarrassing... every time bearophile mentions fallthrough,
I defend it - it's sometimes useful and besides, those bugs
*never* happen to *me*.

Blargh.


(the reason I didn't catch this before is that case is a private
extension to CSS' selector, that I very, very rarely use, and
nobody else uses it either, since it's nonstandard, so it hasn't
been caught in my little browser I'm writing with this either.)


More information about the Digitalmars-d mailing list