Skip to content

Minimalistic HTTP web-server for file-sharing, single-page application hosting and many more

Notifications You must be signed in to change notification settings

dirkarnez/staticserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

staticserver

Minimalistic HTTP web-server for file-sharing, single-page application hosting and many more. Intended for development use / as an utility, not for production use

staticserver 
[--port={port | default to 80 }] \
[--root={root (default to working directory)}] \
[--mode={spa | upload | fs default}]

TODOs

TODOs (2.0.0)

  • spa mode bugs

Known Issue(s)

  • The mime-type in Windows registry may be modified by other software causing wrong Content-Type in response, see issue(s)

    • golang/go#32350
      • How to fix: regedit -> go to Computer\HKEY_CLASSES_ROOT\.js -> set Content Type to application/javascript
      • It should be platform-independent anyway
  • Some server-side files does not have their correct Content-Type in response (text/html; charset=utf-8), found

    • .woff
    • .ttf

MIME

.otf: font/otf
.woff: font/woff
.woff2: font/woff2
.ttf: font/ttf
.ico: image/vnd.microsoft.icon
.apk: application/vnd.android.package-archive
.wasm: application/wasm
.js: application/javascript

Reference

About

Minimalistic HTTP web-server for file-sharing, single-page application hosting and many more

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages