git.s-ol.nu mmm / 053624c
urlDecode incoming request paths s-ol 3 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1111 import dir_base, load_tree from require 'build.util'
1212 import Key from require 'mmm.mmmfs.fileder'
1313 import SQLStore from require 'mmm.mmmfs.drivers.sql'
14 import decodeURI from require 'http.util'
1415
1516 lfs = require 'lfs'
1617 server = require 'http.server'
128129 req = stream\get_headers!
129130 method = req\get ':method'
130131 path = req\get ':path'
132 path = decodeURI path
131133
132134 -- serve static assets, cheap hack for now
133135 return if @handle_static method, path, stream