1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-20 15:22:01 +03:00
Commit Graph

3203 Commits

Author SHA1 Message Date
bel
47e1dc92ac Do not allow short file names in Windows
This is a fix for pattern matching problems in Windows,
and also a fix for a possible leak of encrypted passwords in Windows if .htaccess files with multiple users in the document root are used on a volume with 8.3 filenames enabled.

See #299
2016-04-20 22:18:17 +02:00
Christian Mauderer
c95e1ab2f1 Add option for building civetweb without timegm().
This disables the caching feature. Civetweb will not be able to detect a
unchanged file.
2016-04-20 11:56:04 +02:00
bel
f3828415f9 Add test for CGI post 2016-04-19 23:23:42 +02:00
bel
dc51500c06 Try to build CGI test executable in CI test environment 2016-04-19 22:47:49 +02:00
bel
fb7617d005 Try to build CGI test executable in CI test environment 2016-04-19 22:27:31 +02:00
bel
3671ee2c01 Finish fix for CGI pipes in Windows (see #269) 2016-04-19 21:46:45 +02:00
bel
6711246563 Fix "POST data to CGI-script does not receive EO" for Windows
See #296
(TODO: Tests)
2016-04-19 21:06:07 +02:00
bel
93c21edf3f Clean up after patch for #296
Get Windows build to compile again after a patch for Linux has been applied
2016-04-19 20:17:49 +02:00
bel
97e45fc499 Fix "POST data to CGI-script does not receive EO" for Linux
patch from kriztioan, 2014-04-18, see #296 (https://github.com/civetweb/civetweb/issues/296#issuecomment-211566603)

TODO: check the situation for Windows
2016-04-19 19:55:39 +02:00
bel
1b4b8b8fc7 Add HTML page for CGI test (#296) 2016-04-18 21:38:15 +02:00
bel
226167b881 Add test to reproduce #296 2016-04-18 21:11:39 +02:00
bel
6316f030e1 Autoformat code 2016-04-16 22:14:05 +02:00
bel
f36619570a Add a helper script to test MinGW builds locally (to help debugging the build server) 2016-04-16 22:13:25 +02:00
bel
d0ff5a5dc8 Fix const char vs char warning 2016-04-16 22:03:01 +02:00
bel
94855981a5 Quick fix for #295: Sec-Wesocket-Protocol response header is wrong when there are multiple subprotocols
This issue only occurs if the Websocket constructor uses an array of protocol strings as optional "protocol" argument (see https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications), and even if, many user agents do not seem to care.

This is just a quick fix: The first of the Sec-Websocket-Protocol values sent by the client is returned by the server.
However, this is not how Sec-Websocket-Protocol is meant to be used in the RFC:
In order to get the RFC intended behavior, CivetWeb would need a list of websocket subprotocols accepted by the server. Then the server must either select a subprotocol supported by client and server, or the server has to abort the hanshake if no sub-protocol is acceptable.
2016-04-16 21:53:20 +02:00
bel
6d3cbb697f Update manual tests 2016-04-16 21:53:15 +02:00
bel2125
b08e8ee0f7 Merge pull request #294 from kainjow/cmake-patch
Apply patch only for OS X
2016-04-05 20:10:41 +02:00
bel2125
9b89280590 Merge pull request #293 from kainjow/osx-dmg
Fix OS X dmg build
2016-04-05 20:10:15 +02:00
Kevin Wojniak
b92dbcf0f9 Allow patch to run on Linux 2016-04-05 09:31:55 -07:00
Kevin Wojniak
56bca67528 Apply patch only for OS X 2016-04-03 17:13:04 -07:00
Kevin Wojniak
08b6fc7d9b Show alert if opening the config file on OS X files, which can happen when the app is launched from the read-only disk imager 2016-04-03 14:10:00 -07:00
Kevin Wojniak
f2820b50ca Fix OS X dmg build 2016-04-03 14:08:55 -07:00
bel2125
f87d170a18 Merge pull request #292 from kainjow/travis-osx
Exclude GCC from OS X
2016-04-03 22:04:14 +02:00
bel2125
a36e852805 Merge pull request #291 from kainjow/const-warnings
Fix various const warnings
2016-04-03 22:03:52 +02:00
Kevin Wojniak
92a009f53c Remove allow_failures for osx 2016-04-03 11:55:38 -07:00
Kevin Wojniak
696b2936e1 Fix fast_finish syntax 2016-04-03 11:55:27 -07:00
Kevin Wojniak
319612d7ee Exclude gcc OS X travis builds 2016-04-03 11:55:03 -07:00
Kevin Wojniak
58e1a4ee9e Fix "cast from 'const struct in_addr *' to 'unsigned int *' drops const qualifier" 2016-04-03 08:22:22 -07:00
Kevin Wojniak
1ec7b13ec2 Fix "cast from 'const char *' to 'unsigned char *' drops const qualifier" 2016-04-03 08:22:22 -07:00
Kevin Wojniak
fe420072c4 Fix "cast from 'const char *' to 'char *' drops const qualifier" 2016-04-03 08:22:22 -07:00
Kevin Wojniak
61daaa08dc Change mg_set_user_connection_data() to take a non-const connection since the connection needs to be modified. This fixes a "drops const qualifier" warning on OS X. 2016-04-03 08:22:07 -07:00
Kevin Wojniak
70e74a28bf Fix "Cast from 'const unsigned char *' to 'void *' drops const qualifier" 2016-04-03 08:21:54 -07:00
bel2125
082b6a1fc4 Merge pull request #290 from kainjow/osx-timer
Fix OS X link error due to missing libcompat
2016-04-03 09:54:22 +02:00
Kevin Wojniak
90d5d41297 Revert "Suspend OSX support for civetweb for an indefinite period"
This reverts commit 80dc0b3826.
2016-04-02 23:06:41 -07:00
Kevin Wojniak
63d2956f8f Fix OS X link error due to missing libcompat 2016-04-02 17:52:58 -07:00
bel
80dc0b3826 Suspend OSX support for civetweb for an indefinite period
Currently TravisCI only offers experimental support for OSX,
the check unit test framework does not work for OSX now,
and I can not do the tests locally.
See #94
2016-04-02 23:12:12 +02:00
bel
0e6222504c Explain last partial fix for #278 in a comment in appveyor.yml 2016-04-02 23:09:11 +02:00
bel
8d6e9d1b1d Patch should be in the path, but sh should not.
Rename sh.exe to _sh.exe.

See #278
2016-04-02 21:33:01 +02:00
bel
2dfb5a50dc Travis CI builds should be successful, even if they fail for OSX
According to
https://docs.travis-ci.com/user/multi-os/
it should be

matrix:
  allow_failures:
    - os: osx

instead of

env:
  matrix:
    allow_failures:
      - os: osx

However, the page also states
"The feature described in this document is considered beta. Some features may not work as described."
2016-04-02 20:30:31 +02:00
bel
1ce33c69ca Comment mg_fopen/mg_fclose 2016-04-01 23:13:30 +02:00
bel
7b51e4ce60 Improve unit tests 2016-04-01 21:57:51 +02:00
bel
bd9c20e04f Fix signed/unsigned warning in unit test 2016-04-01 20:33:11 +02:00
bel
3a31adef54 Correct typing error in unit test 2016-03-31 20:59:48 +02:00
bel
4f38f7fb70 Additional unit tests 2016-03-30 23:33:15 +02:00
bel
ce1c8a6095 Auto-format after merge 2016-03-30 22:36:03 +02:00
bel
9269075e1b Fix recently merged functions so they can be built with Visual Studio 2016-03-30 22:33:48 +02:00
bel2125
201cb9bae2 CMake/CI: Allow builds with warnings for OSX (See #94) 2016-03-30 20:33:52 +02:00
bel2125
01998fbcfe Add UUID for Lua (in Linux). See also #140. 2016-03-30 20:13:13 +02:00
bel2125
489e4b0075 Add CivetWeb internal random function for Lua 2016-03-30 20:13:13 +02:00
bel2125
76627a7223 Merge pull request #287 from gaida/master
Fixed bug in sslize (see #280)
2016-03-30 20:12:09 +02:00