Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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.
Commits on Apr 16, 2013
Commits on Oct 14, 2012
  1. corrected pthread_create emulation; no more weird bus errors/crashes …

    …when mongoose restarts or is idle for a while.
Commits on Oct 1, 2012
  1. Merge commit '4408083b4db2459453be878b4b0886a69eec9521'

  2. Merge commit '518b3aa72642145a811310e2fcb2f3c1a3cb2567' + cleaned mg_…

    …printf() as our implementation now has changed in a way that printf() errors, if any, are fatal anyhow, so a mg_cry() about such a failure would result in at least one more printf() b0rking then...
  3. Merge commit 'ee91109d9f163ed593907c2d3cef99b814a4048e'

  4. @cpq

    Update thread count on OOM error in worker_thread()

    cpq authored committed
  5. tweaks for the examples server: the odd thing is that the drag&drop c…

    …ode only works all the time when these append_log calls are included; looks like I missed some windows message queue peculiarity here :-S
  6. add the 'ignore occupied ports' option - this one can be used when mo…

    …ngoose is used as a server which MAY connect to several ports, where other server apps MAY already have occupied some of these ports. One use is when mongoose is used as a specialty examples server where the ports serving the content don't really matter to be set up front, as long a port is available to serve the content after all.
  7. Merge branch 'master' of

Commits on Sep 26, 2012
  1. some small cleanup for the MSVC/Win32 build; allow 5xx/4xx/etc. HTTP …

    …errors to show in the browser: don't override everything with the 'click here to restart/stop' page.
  2. coloring the severity text in the log pane red; start with a known-go…

    …od root directory (current dir)
  3. book_samples_server: urls listed in the log can be clicked to visit t…

    …hem. Also tweaked the generic error page a bit to render correctly in Safari/Win.
  4. working book_samples_server example. Now we need to clean up and fix …

    …bugs (like missing close box in dialog, button to visit root URL, etc.)
Commits on Sep 25, 2012
  1. book_samples_server: allow index.html et al as directory index files.…

    … Also filter for them in the mongoose user callback.
  2. further work on the book_samples_server app: allow an index page to h…

    …ave precedence over the default page output ('click here for restart and here for quit')
  3. fix mg_signla_stop() and mg_stop() when these are invoked from the MG…

    …_SERVER_EXIT callback or later; also we require the use of the Win32_pthreads library as the mongoose-internal implementation of the broadcast call creates a race condition which will keep the book_samples_server in an infinite loop, waiting for a few client threads forever.
    Also export the mg_substitute_index_file() call to help client code act on existing index files when a directory request is being processed.
  4. more work on the book_samples_server example: properly detect a resta…

    …rt request. Also exported the path logic in mg_mk_fullpath(), which was previously internal and Win32 only.
  5. fixes and augmentation for the book samples server: it now includes M…

    …arkDown and SSI support taken from the virtual_host server sample.
  6. add example server which allows drag&drop of a file or directory onto…

    … the application window to start serving that directory.
Something went wrong with that request. Please try again.