Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dirkarnez/staticserver

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.