The-EDev
cb0915901f
cleaned up code
2020-10-18 03:04:18 +03:00
The-EDev
e06942dfc4
added test
...
funny enough, the test pointed out a mistake i made in the code XD
2020-10-18 02:36:39 +03:00
The-EDev
d20bc7051a
removed include for mime type header
2020-10-18 01:56:07 +03:00
The-EDev
b49d52e78b
Added basic multipart data structure
...
Including methods to generate multipart message from request
2020-10-18 01:34:58 +03:00
The-EDev
823d061c62
Removed unnecessary variables
2020-10-15 13:59:15 +03:00
The-EDev
4e5d43696b
code formatting
...
Removed extra spaces
2020-10-15 00:09:35 +03:00
The-EDev
dc46f2848a
added 405 error for when a rule is found but the method is incorrect
2020-10-15 00:09:17 +03:00
The-EDev
5382ce7b58
Update http_connection.h
2020-10-13 00:53:27 +03:00
The-EDev
99994d90b5
Edited lambda for sending error
2020-10-12 14:07:34 +03:00
The-EDev
964e8f857b
removed sendfile function due to trouble with large files (the sendfile command would just hang until timeout without fully sending the file).
...
Added 404 and fixed some issues with windows error message
sendfile still incompatible with windows due to the stat function
also changed the buffer size to 16KB
2020-10-11 19:00:24 +03:00
The-EDev
4992261f0e
fixed mime type issue, added default plaintext option
2020-10-11 00:54:20 +03:00
The-EDev
8f9486e3c8
added initial chunk sending code (for SSL only)
2020-10-11 00:29:40 +03:00
The-EDev
7ba3c9161f
fixed type mismatch issue when using SSL
2020-10-09 16:01:24 +03:00
The-EDev
744baf8c0a
Refactored mime type generating script
...
using with instead of open and close
removed while loop
using one line to write the new file
using unordered map instead of ordered map
added indentation to the generated file
2020-10-07 12:17:37 +03:00
Farook
24c04c65cf
updated generated file comment
2020-10-04 19:17:58 +03:00
Farook
7e812ea58a
removed content-type related comments
2020-10-04 19:14:13 +03:00
Farook
dd79b31274
added automatic Content-Type header based on file extension
2020-10-04 19:11:18 +03:00
Farook
3f38caa0d0
stole @digitalist's sendFile code and made it work with newer boost
2020-10-04 15:05:26 +03:00
Igor Mroz
b6003f5c6a
Merge pull request #2 from nowgoing/master
...
Update websocket.h function "void do_read()"
2020-08-24 21:00:05 +02:00
SQyang
0cb9330125
Update websocket.h
2020-08-24 19:47:30 +08:00
SQyang
215b7dcf35
Update websocket.h
2020-08-13 13:18:16 +08:00
Igor Mroz
1a92344dd4
Merge pull request #1 from moneroexamples/fix_boost_170
...
fixes problem with boot 1.70
2019-11-05 18:59:00 +01:00
moneroexamples
c95f68499e
fixes problem with boot 1.70
2019-07-01 14:49:10 +08:00
Igor Mróz
741ba25abf
Merge branch '#146_add_ip_address_field'
2018-09-28 21:24:06 +02:00
Igor Mróz
ef7fa91631
#146 Added field with remote IP address.
2018-09-28 21:16:36 +02:00
Igor Mróz
809453f9d5
#315 Checking if server is nullptr.
2018-08-30 17:51:54 +02:00
Jaeseung Ha
49edf898a5
Merge pull request #274 from mwm126/mingw-gmtime_s
...
Use gmtime_s on MinGW
2017-12-27 23:33:31 +09:00
ipknHama
d1a30bf422
Avoid exceptions while closing sockets
2017-12-25 22:36:30 +09:00
ipknHama
05d02fea6e
Remove printf warning for lld, llu
2017-12-25 16:26:30 +09:00
ipknHama
b7360a2bac
Support multiple methods for same URL
...
- fix broken unittests because of server initializing order change
- add a function to wait until server is up
2017-12-25 15:31:20 +09:00
ipknHama
daa1e3eadc
Add PURGE method, add a special enum item for counting
2017-12-25 15:31:20 +09:00
Jaeseung Ha
6876a08e61
Merge pull request #260 from erikaldsund/fix_rvalue_copy_ctor_bug
...
Fixed bug in json::rvalue copy constructor
2017-12-25 15:31:11 +09:00
Jaeseung Ha
943dcba507
Merge pull request #259 from erikaldsund/fix_r_string_inconsistency
...
Fixed bug in r_string
2017-12-25 15:30:32 +09:00
Jaeseung Ha
01cc7a3508
Merge pull request #258 from erikaldsund/fix_handling_of_big_integers
...
Fix handling of big integers
2017-12-25 15:30:06 +09:00
Mark Meredith
6974d3fcf9
Use gmtime_s on MinGW
2017-12-24 12:38:52 -05:00
Jaeseung Ha
49bd1c2797
Merge pull request #261 from erikaldsund/fix_warning_in_websocket_h
...
Fixed warning in websocket.h: right shift count >= width of type
2017-12-25 02:29:25 +09:00
roxma
f0eb73ce8c
Fix ws read failure when using 16bit payload
...
Also should use ntohs instead of htons when read from socket.
2017-12-22 17:53:51 +08:00
Erik Åldstedt Sund
3c45393b2d
Don't call copy_l before all other members are set
...
This lead to undefined behaviour during copy.
2017-10-30 20:51:44 +01:00
Erik Åldstedt Sund
29824c84ed
Fixed bug in r_string: end of string pointer was not updated in the force member function
...
This could lead to undefined behaviour in the std::string conversion
operator, when using the iterator interface (begin() / end()), and the size()
member function.
2017-10-30 20:50:17 +01:00
Erik Åldstedt Sund
ecbbd0ebf2
Fixed ostream operator for big integers
2017-10-30 20:47:48 +01:00
Erik Åldstedt Sund
4fe7dd171a
Handle big integers in json::wvalue
...
Handled by adding an enum num_type in both rvalue and wvalue (to separate
between signed/unsigned ints, and floating point values) and a union for
the number value in wvalue.
2017-10-30 20:47:48 +01:00
Erik Åldstedt Sund
83bd8c09a0
Fixed warning in websocket.h: right shift count >= width of type
...
Fixed by static_cast-ing values from 32-bit values to 64-bit values.
2017-10-30 20:45:34 +01:00
Jaeseung Ha
7f3f72441c
Merge pull request #253 from boodkb/patch_method
...
Add support for HTTP PATCH method
2017-10-21 20:51:35 +09:00
Simon Rasmussen
f88657a22a
Added 413 and 429 status codes
2017-10-20 15:20:18 +02:00
BooD
8b01385465
Add HTTP PATCH support
2017-10-05 18:13:40 +03:00
ipknHama
7560f329c9
Remove unused include.
2017-09-18 04:43:51 +09:00
ipknHama
2c26b6c1de
Change default settings
...
- disable crow debug mode by default
- expose `loglevel` method on `App` to change the logging level easily
- add a startup message that guides how to change the logging level
2017-09-18 02:58:53 +09:00
ipknHama
e93ba25f2c
Fix cookie parsing: Cookie doesn't have escaping mechanism.
2017-09-18 02:39:46 +09:00
ipknHama
9c26e1ebde
Simplify json.keys()
2017-09-18 01:21:18 +09:00
Jaeseung Ha
08acc7c0be
Merge branch 'master' into master
2017-09-18 00:43:42 +09:00