Commit Graph

780 Commits

Author SHA1 Message Date
Serdar Dogruyol 50f82f5187 Use be_nil in specs instead of eq nil 2018-01-26 18:35:34 +03:00
Serdar Dogruyol 159e963404 Format with 0.24.1 formatter 2018-01-26 18:32:24 +03:00
Serdar Dogruyol 4034dab952 Add Kemal::Context.get? to safely access context storage. Fixes #428 2018-01-26 18:30:09 +03:00
Serdar Dogruyol 17bd3dce37 0.22.0 2017-12-29 15:36:40 +03:00
Donovan Glover f6f342df65 Change 'middlewares' to 'middleware' (#427) 2017-12-23 12:27:41 +03:00
Serdar Dogruyol 56d34deef9 Minor refactors 2017-12-08 21:35:02 +03:00
Serdar Dogruyol 8cb9770ec3 Use HTTP::Params.add instead of HTTP::Params.[]= 2017-11-20 17:23:11 +03:00
Serdar Dogruyol a3a0f40468 Revert "Parse body in multipart forms"
This reverts commit ca7c4dc0e8.
2017-11-20 15:01:16 +03:00
Serdar Dogruyol ca7c4dc0e8 Parse body in multipart forms 2017-11-19 18:14:06 +03:00
Serdar Dogruyol 902d87c0a7
Use Flate::Writer.open (#394) 2017-11-02 18:49:41 +03:00
Serdar Dogruyol ce10f7d31d
Create PULL_REQUEST_TEMPLATE.md 2017-11-02 18:45:56 +03:00
Serdar Dogruyol 5b977b8fc2
Create ISSUE_TEMPLATE.md 2017-11-02 18:44:41 +03:00
Flora Rosenkreuz 0b9628dfea Add webm mime type to utils.cr (#413) 2017-10-13 15:37:50 +03:00
Serdar Dogruyol 5d737ee8f3 Rename common_log_handler and common_exception_handler 2017-10-06 20:34:18 +03:00
Serdar Dogruyol ac56973663 Format 2017-10-06 14:59:53 +03:00
Sijawusz Pur Rahnama 1d8908e673 Fixed macros indentation (#409) 2017-10-06 14:55:37 +03:00
Sijawusz Pur Rahnama 210e2c0801 Prettify docs (#410) 2017-10-06 14:53:53 +03:00
Serdar Dogruyol c2da18ed38 Use .empty? instead 2017-10-06 13:41:22 +03:00
Serdar Dogruyol 84839f4da7 Refactour handler radix names 2017-10-06 12:46:58 +03:00
Serdar Dogruyol 63e613a439 Don't try to call error_handlers if there isn't any 2017-10-05 19:52:57 +03:00
Serdar Dogruyol dfd127e1ed Don't use handler as the IO name 2017-10-05 19:31:47 +03:00
Serdar Dogruyol 677dc62832 Remove dead code for WebSocketHandler 2017-10-05 19:29:35 +03:00
Serdar Dogruyol ff37027afe Add targets to shard.yml 2017-10-05 19:24:30 +03:00
Serdar Dogruyol 0b07070237 Don't initiliaze server if it's already initialized 2017-10-04 19:51:14 +03:00
Serdar Dogruyol ad692357d4 Allow config.server to be lazily initiliazed. Fixes #396 2017-10-04 19:42:41 +03:00
Serdar Dogruyol 61caa077b7 Improve namings 2017-10-02 23:56:02 +03:00
Cris Ward 30bdcc9759 only return strings from routes fixes #374 (#408) 2017-10-02 23:47:43 +03:00
Cris Ward 8cf3f67594 fix for #399 (#407)
* fix for #399

* updating travis

* added without release back in

* added no debug to get around llvm issue
2017-09-29 09:25:26 +03:00
Serdar Dogruyol a27e8859a6 Merge pull request #405 from crisward/patch-4
Fix for video in safari
2017-09-28 19:16:20 +03:00
Cris Ward 03daf2aee2 Added `Accept-Ranges` header 2017-09-28 16:02:37 +01:00
Cris Ward 183ae42a54 corrected content length 2017-09-28 14:17:12 +01:00
Serdar Dogruyol 3e355cbd51 Merge pull request #406 from crisward/patch-5
Allows videos to be opened with correct mime type
2017-09-28 14:19:57 +03:00
Cris Ward 6c11f943d0 Better fix for safari video bug
This seems to work everywhere that I've tested.
2017-09-28 12:07:26 +01:00
Cris Ward 1423c96d0a Allows videos to be opened with correct mime type 2017-09-28 11:13:55 +01:00
Cris Ward 81f2ee7815 Fix for video in safari
Video doesn't work safari.

It seem to be to do with the content-range header. Safari initially asked for the first byte. 
However with a single byte request, the header outputs
`bytes 0-0/1000` (if this file is 1000 bytes in size)

It does work however if we make the end value 1. But removing the `-1` breaks it in chrome. So I suggest this change, which means the end can't be smaller than 1.
2017-09-28 11:12:44 +01:00
Serdar Dogruyol 00981bcf44 Improve websocket match logic. Fixes #401 2017-09-14 19:59:22 +03:00
Serdar Dogruyol e07be72dcf Remove ws_routes from route handler 2017-09-10 15:45:57 +03:00
Serdar Dogruyol 5f834f8873 Use expect_raises for websocket handler spec 2017-09-10 15:04:51 +03:00
Serdar Dogruyol fe9d193418 Seperate websocket and websocket handler. Fixes #395 2017-09-10 14:41:07 +03:00
Serdar Dogruyol 3050b75f0a Tidy up config properties 2017-09-06 23:58:55 +03:00
Serdar Dogruyol 731b2e0d5b Bump version to 0.21.0 2017-09-05 14:07:46 +03:00
Serdar Dogruyol 9316ed8810 Update CHANGELOG 2017-09-05 12:15:00 +03:00
Serdar Dogruyol 8fb5be2a42 Remove redundant casts 2017-09-05 12:03:37 +03:00
Serdar Dogruyol 1c069ab643 Refactor 2017-09-05 11:10:04 +03:00
Serdar Dogruyol faedeebee9 Merge pull request #392 from mang/patch-1
Set correct namespace for Route
2017-09-05 10:00:54 +03:00
mang 249912222d Set correct namespace for Route
Fixes compile error "undefined constant Route"
2017-09-05 01:25:42 +02:00
Serdar Dogruyol 422313425c Remove redundant intermediate var from process_route 2017-09-04 23:46:53 +03:00
Serdar Dogruyol b8e3298925 Use request.content_type 2017-09-04 18:54:06 +03:00
Serdar Dogruyol a1520de7ed Leave tmpfile management to OS 2017-09-04 17:46:09 +03:00
Serdar Dogruyol 79e324efaf Add more types to method signatures 2017-08-25 16:41:02 +03:00