urlDecode incoming request paths
s-ol
3 years ago
11 | 11 | import dir_base, load_tree from require 'build.util' |
12 | 12 | import Key from require 'mmm.mmmfs.fileder' |
13 | 13 | import SQLStore from require 'mmm.mmmfs.drivers.sql' |
14 | import decodeURI from require 'http.util' | |
14 | 15 | |
15 | 16 | lfs = require 'lfs' |
16 | 17 | server = require 'http.server' |
128 | 129 | req = stream\get_headers! |
129 | 130 | method = req\get ':method' |
130 | 131 | path = req\get ':path' |
132 | path = decodeURI path | |
131 | 133 | |
132 | 134 | -- serve static assets, cheap hack for now |
133 | 135 | return if @handle_static method, path, stream |