Joris Vink
fb6512259c
small style changes.
2016-03-21 15:30:11 +01:00
Joris Vink
adef05147e
Merge pull request #116 from SDAIA/http_method_text
...
Adds http_method_text
2016-03-21 15:29:07 +01:00
Ángel González
1bda217d57
Based on #115 pull request, adds http_method_text, similar to http_status_text
2016-03-21 15:12:27 +01:00
Joris Vink
ca2837fbaf
Add release date for 2.0.0.
2016-02-27 11:56:55 +01:00
Joris Vink
4a69657dce
Don't call close on an fd that is -1.
2016-02-25 22:04:24 +01:00
Joris Vink
f7b0b7c7ac
Sometimes content_length wasn't properly updated.
2016-02-22 14:08:21 +01:00
Joris Vink
0294212a3c
Do not free results from http_request_header().
2016-02-21 18:29:06 +01:00
Joris Vink
318647945f
more consistency in fatal messages.
2016-02-13 15:45:33 +01:00
Joris Vink
8fcf4762f4
Improve http_body_recv().
...
- If we fail to write to our temporary file error instead of fatal.
- Return KORE_RESULT_ERROR on other errors as well.
2016-02-13 15:41:37 +01:00
Joris Vink
4503b4756b
remove lies.
2016-02-13 15:38:00 +01:00
Joris Vink
c83abd5afb
If ele is 0 return 0 instead of fataling.
2016-02-13 15:27:02 +01:00
Joris Vink
1c8836b2e1
Add precaution against calling kore_split_string with ele == 0
2016-02-13 14:35:11 +01:00
Joris Vink
0c0393fc64
constify
2016-02-13 14:33:06 +01:00
Joris Vink
090e2cc6a2
Debug builds imply NOOPT
2016-02-13 14:21:09 +01:00
Joris Vink
fcc2010117
Make debug builds build again.
2016-02-13 14:20:31 +01:00
Joris Vink
c91fa9ab70
don't be dumb.
2016-02-13 14:13:59 +01:00
Joris Vink
9340d132db
don't bother with empty things in kore_text_trim.
2016-02-13 14:02:10 +01:00
Joris Vink
91fb225e5c
Merge pull request #109 from fahlgren/cleanup
...
Cleanup
2016-02-12 12:00:15 +01:00
Daniel Fahlgren
04aec1c2dd
Fix typo in log message
2016-02-12 08:57:58 +01:00
Daniel Fahlgren
be1c6f7155
Remove ; from end of do { ... } while(0) macro
...
With the ; the following types of usage doesn't work:
if (a == 1)
COPY_ARG_TYPE(...);
else
foo(...);
2016-02-12 08:56:10 +01:00
Joris Vink
12e1820a4f
Unbreak normal POST parsing.
...
It was broken for > 2 fields due to recent large changes,
unfortunately i didn't catch this until now.
2016-02-06 15:32:23 +01:00
Joris Vink
d4435bec8d
Correct pretty bad typo.
2016-02-06 14:59:54 +01:00
Joris Vink
f36ac911d3
Mention NOOPT.
2016-02-01 22:19:16 +01:00
Joris Vink
40f69924bb
Move shared file reading code to kore_read_line()
2016-02-01 22:10:10 +01:00
Joris Vink
17e311dba9
constify kore_parse_config_file() parameter.
2016-02-01 21:59:31 +01:00
Joris Vink
ac864a7419
Update output message to match others.
2016-02-01 21:54:09 +01:00
Joris Vink
3b1204d599
Make sure certkey and certfile are NULL after freeing.
...
From oneswig but I accidentally removed it during the merge.
2016-02-01 21:42:33 +01:00
Joris Vink
d0e9441b60
remove debug.
2016-02-01 21:41:25 +01:00
Joris Vink
c8484ee9ab
Redo config parsing a bit.
...
No longer just call kore_string_split() on the line
but separate out the configuration directive and let
the appropriate callbacks parse things on their own.
2016-02-01 21:33:51 +01:00
Joris Vink
82a9e6ef59
Formatting and unbreaking NOHTTP builds.
2016-02-01 20:02:02 +01:00
Joris Vink
f4d00645ed
Merge pull request #99 from oneswig/master
...
Add resource management as part of the kore shutdown process.
2016-02-01 19:51:27 +01:00
Joris Vink
1f5e482b8a
Build option changes.
...
- Build with -O2 unless NOOPT is set to 1.
- Hide -g behind DEBUG instead of always building with it.
- Explicitely set the standard used to c99, use pedantic.
2016-02-01 15:33:40 +01:00
Stig Telfer
7963a2deaa
Added cleanup for the module handlers and validators
2016-02-01 12:13:22 +00:00
Stig Telfer
55d2451b90
Add cleanup of http_body_path pool
2016-02-01 10:10:04 +00:00
Stig Telfer
bd975541dd
Merge branch 'master' into oneswig
2016-02-01 10:04:59 +00:00
Joris Vink
f2f5a3742f
Let SIGTERM properly shutdown Kore as well.
2016-01-31 16:48:17 +01:00
Joris Vink
cb489ce80f
Define WAIT_ANY if not defined previously.
2016-01-31 16:47:00 +01:00
Joris Vink
3284265b74
Remove the -v stuff and always show cflags and ldflags.
2016-01-27 21:37:59 +01:00
Joris Vink
b777ea65cd
Long day .. actually add the new build flavor code.
2016-01-27 21:32:57 +01:00
Joris Vink
c5ce707a91
Introduce build flavors.
...
Kore applications now get a build.conf which may contain different
build flavors. Each flavor can get its own cflags or ldflags.
This was in parts inspired by #106 .
A new cli command has been added:
kore flavor
This command allows you to see all flavors and switch between them.
The kore build command now also takes a -v argument which if given
dumps the used CFLAGS and LDFLAGS out to stdout.
For existing applications the build.conf is automatically generated
next time you run kore build or kore run.
Also fixed a bug in the json_yajl example, sneaky change here.
2016-01-27 21:29:59 +01:00
Joris Vink
8282baf63d
s/http/https/
2016-01-27 08:42:08 +01:00
Joris Vink
702ebd1a8d
Mention IRC channel on freenode.
2016-01-27 08:41:16 +01:00
Stig Telfer
2ac6e7d41d
Merge branch 'master' into oneswig
2016-01-24 13:46:38 +00:00
Joris Vink
340bcb3b0d
Properly queue net events for tls-proxy example
2016-01-22 15:07:33 +01:00
Stig Telfer
fd0ddca46c
Add cleanup function for platform_event on BSD systems
2016-01-22 11:26:56 +00:00
Stig Telfer
ec73c35952
Add missing C library headers
2016-01-22 11:08:13 +00:00
Joris Vink
a958627837
Unlink correct file in upload example.
2016-01-20 10:33:32 +01:00
Joris Vink
d67b5aaa04
Properly do config for upload example
2016-01-18 11:51:44 +01:00
Joris Vink
192f458f97
remove unused variable.
2016-01-18 11:43:44 +01:00
Joris Vink
a2216c84b0
Properly check if path was already set.
2016-01-18 11:43:10 +01:00