codebox/bitmeteros — pull request #12 by Kline- (2012-01-21 08:16:38+00:00)
Title: HTTP 303 Support

Hey,

I run bitmeteros behind an Apache2 Reverse Proxy and noticed Apache treats requests missing a trailing slash on the URI as a file and thus displays the index.html output request it gets from the bmws incorrectly to the user (as in not working).

Tossing a 303 corrects this and doesn't break any current behavior. Requests for "/" now get served a 303 pointing them to "http://servname:port/index.html" or the mobile version if requested. Server name is pulled based on if remote connects are allowed or not.