Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 26, 2015
  1. the book sample server now accepts *relative* paths for the `-r` docu…

    …ment_root option, e.g. `-r ../../`
Commits on Sep 16, 2015
  1. Merge branch 'master' of

    # Conflicts:
    #	pthread-win32
Commits on Sep 7, 2015
  1. updated libraries

Commits on Aug 26, 2015
  1. fix SVG image HTML

Commits on Apr 24, 2015
  1. completed the initial work on compiled-in resources (HTML files, imag…

    …es, etc.) -- no SSI for these, though.
  2. fixed bug in `get_builtin_mime_type()` where it wouldn't deliver the …

    …user-specified default mime type when no match is found in the built-in mime lookup table.
Commits on Apr 22, 2015
  1. check if the 'remembered' (recalled) DocumentRoot from the Windows Re…

    …gistry is actually valid; if it isn't, we assume the DocumentRoot is the current working directory instead.
    Also generated a new release executable.
  2. store the active DocumentRoot in the Windows registry for later recal…

    …l: no need to drag&drop the same directory onto the app on every run. This code requires Windows Vista or above, hence the minimum Windows version has been bumped to `0x600`.
Commits on Apr 21, 2015
  1. whitespace korrektur

  2. completed the generalized WM_SIZE/WM_SIZING resize code - now all con…

    …trols in the dialog stick to whichever side(s) they should.
  3. generalizing the window resize work: prepare to measure all controls …

    …and resize all according to the rules set for them, using a hashtable to quickly access their calculated dimensions' meta info.
  4. - added MG_ASSERT(): a custom assertion feature

    - working out the window resize logic (WM_SIZE + WM_SIZING)
  5. Augment the code to load the highest/latest RichEdit control: only ve…

    …rsions 5.x and above show East Asian URLs correctly, e.g. <http://庙.gov:9999/>
Commits on Apr 20, 2015
  1. Merge branch 'master' of

Commits on Apr 19, 2015
  1. @HansWessels

    - exported the mg_scan_directory() API

    HansWessels authored
    - print the potential VHost domains every time we (re)start the book sample server: it will scan the Windows OS `hosts` file and print all viable entries there.
  2. @HansWessels
  3. @HansWessels

    changed API name `mg_match_prefix` to the more aptly named `mg_match_…

    HansWessels authored
    …string`; also adjusted the internal function name.
  4. @HansWessels
Commits on Mar 18, 2015
  1. fix projects so that post-build commands like `copy` don't barf on UN…

    …IX forward slashes `/` in the paths...
  2. Copy the Win32/Release binary for the 'book sample server' to the `di…

    …st` directory as a post-build task in MSVC2013: auto-update that published binary whenever we build it again in 'production mode'.
  3. whitespace

  4. include the built Win32 book samples server binary in the repo for fa…

    …st & easy access: not every user has a full-fledged MSVC build environment and this binary is meant to be used by everyone who wishes to run a simple local website, e.g. when working with web site 'sources' included with a book.
Commits on Mar 12, 2015
  1. - exported the MIME-type functions to the interface: `mg_get_mime_typ…

    …e()` and helper `mg_vec_matches_string()`; `default_mime_type` parameter MAY be NULL (which is useful to signal the caller that we don't know the MIME type for the given file/extension).
    - fix issue #2 : produce a 404 for JS/CSS/etc. files, i.e. any files which have a MIME type other than `text/html`
Commits on Apr 18, 2013
  1. whitespace police raid.

Commits on Apr 17, 2013
  1. changed the MSVC2010 project to use the internal pthreads emulation, …

    …rather than the WinPthreads32 library. This is a temporary change until winpthreads is fixed.
  2. - fix bug: click on red close box in top-right corner would not quit …

    …the server
    - fix bug: don't print '304' HTTP errors in the log pane: it only scares users and it just means that Mongoose reported the file as 'Not Modified' which is perfectly legal.
Something went wrong with that request. Please try again.