addressed feedback

This commit is contained in:
Tyler Brown Cifu Shuster 2020-12-10 15:42:35 -08:00
parent 308da85851
commit 263f046cc2
4 changed files with 6 additions and 7 deletions

View File

@ -143,7 +143,6 @@
%js (js-response:gen u.file)
%css (css-response:gen u.file)
%png (png-response:gen u.file)
%woff2 (woff2-response:gen u.file)
==
:: get data matching the json and convert it
::
@ -401,7 +400,7 @@
++ get-file-at
|= [base=path file=path ext=@ta]
^- (unit octs)
?. ?=(?(%html %css %js %png %woff2) ext)
?. ?=(?(%html %css %js %png) ext)
~
=/ =path
:* (scot %p our.bowl)

View File

@ -219,9 +219,9 @@
=/ file (as-octs:mimes:html .^(@ %cx scry-path))
:_ public.u.content
?+ ext.req-line not-found:gen
[~ %js] (js-response:gen file)
[~ %css] (css-response:gen file)
[~ %png] (png-response:gen file)
[~ %js] (js-response:gen file)
[~ %css] (css-response:gen file)
[~ %png] (png-response:gen file)
::
[~ %html]
%. file

View File

@ -77,7 +77,7 @@
=? hav ?=(^ fil.lon)
:: XX this whitelist needs to be reviewed
::
?. ?= ?(%css %hoon %html %js %json %md %png %txt %udon %umd %woff2)
?. ?= ?(%css %hoon %html %js %json %md %png %txt %udon %umd)
-.tyl
::
:: install only files with whitelisted marks

View File

@ -9,4 +9,4 @@
++ noun octs
--
++ grad %mime
--
--