mirror of
https://github.com/Doczom/simple-httpd.git
synced 2025-09-21 02:50:09 +02:00
Added function for loading mime types file from the config file. Fixed a small bugs in the test_unit and translate comments in httpd. Added working config server (in exemple) Checked server in work - server worked
40 lines
1.2 KiB
NASM
40 lines
1.2 KiB
NASM
format binary as "bin"
|
|
use32
|
|
org 0
|
|
|
|
macro table arg3, [arg1,arg2] {
|
|
local ..x,..x_end
|
|
forward
|
|
dd ..x
|
|
common
|
|
local ..other
|
|
dd ..other
|
|
; èëè size = ($ - ñòàðò) / 8
|
|
forward
|
|
..x db ..x_end-..x - 1, arg1
|
|
..x_end db arg2, 0
|
|
common
|
|
..other dd 0
|
|
db arg3, 0
|
|
|
|
}
|
|
|
|
|
|
table 'application/octet-stream' ,\
|
|
'.html', 'text/html' ,\
|
|
'.htm', 'text/html' ,\
|
|
'.css', 'text/css' ,\
|
|
'.js', 'text/javascript' ,\
|
|
'.txt', 'text/plain; charset=utf-8' ,\
|
|
'.pdf', 'application/pdf' ,\
|
|
'.json', 'application/json' ,\
|
|
'.png', 'image/png' ,\
|
|
'.mp3', 'audio/mpeg' ,\
|
|
'.mp4', 'video/mp4' ,\
|
|
'.gif', 'image/gif' ,\
|
|
'.webp', 'image/webp' ,\
|
|
'.svg', 'image/svg+xml' ,\
|
|
'.apng', 'image/apng' ,\
|
|
'.jpeg', 'image/jpeg' ,\
|
|
'.jpg','image/jpeg'
|