grip-framework / grip

The microframework for writing powerful web applications.

Home Page:https://grip-framework.github.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong behavoir of serve_static on Windows

yanecc opened this issue · comments

On Windows, when serve_static is set true, behaviors to request for local resources will lead to a series of errors, including 304 resp status to a request for static files, none response for requests to obtain data from database etc.

expanded_path = File.expand_path(request_path, "/")

File.expand_path("/whois", "/") => C:\whois
This may be part of the cause of the problem.

A quick fix 6af00fa

Thank you for this fix!