Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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…

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

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

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

    authored
    …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…

    authored
    …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.

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

    authored
    …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 …

    authored
    …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 …

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

    authored
    Conflicts:
    	mongoose.c
  2. Merge commit '518b3aa72642145a811310e2fcb2f3c1a3cb2567' + cleaned mg_…

    authored
    …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...
    
    Conflicts:
    	Makefile
    	mongoose.c
  3. Merge commit 'ee91109d9f163ed593907c2d3cef99b814a4048e'

    authored
    Conflicts:
    	examples/chat.c
    	main.c
    	mongoose.c
    	mongoose.h
  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…

    authored
    …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…

    authored
    …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 github.com:GerHobbelt/mongoose

    authored
    Conflicts:
    	upskirt
    	win32/msvc2010/mongoose.sln
Commits on Sep 26, 2012
  1. some small cleanup for the MSVC/Win32 build; allow 5xx/4xx/etc. HTTP …

    authored
    …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…

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

    authored
    …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 …

    authored
    …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.…

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

    authored
    …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…

    authored
    …_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…

    authored
    …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…

    authored
    …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…

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