0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
Commit graph

1227 commits

Author SHA1 Message Date
Nicholas Lundgaard
cd7f4d9ac5
Update ranch to 1.3.1 in rebar.config
Update to match the Makefile change in 3a240eb49b. Fixes #1088
2017-02-04 14:09:16 +01:00
Loïc Hoguin
2a7bb7ba11
Update to 1.1.0 2017-01-31 18:56:07 +01:00
Loïc Hoguin
8441158260
Fix wrong path url decoding algorithm
I embed cow_uri since I can't update Cowlib further easily.
This is most likely a one shot release so it shouldn't be
a problem to do things a little more dirty than usual.
2017-01-31 18:50:32 +01:00
Loïc Hoguin
3b4de4384a
Update Erlang.mk 2017-01-31 18:10:46 +01:00
Loïc Hoguin
3a240eb49b
Update Ranch to 1.3.1 2017-01-31 18:10:20 +01:00
Jean-Sébastien Pédron
98c2bc64e5
cowboy_static: Add support for files in EZ archives
If cowboy_static is initialized with `{priv_file, ...}` or `{priv_dir,
...}`, it is now able to read files from Erlang application .ez
archives.

When serving a file from an archive, the #file_info{} comes from the
archive, not the contained file, except for the size and type. The
erl_prim_loader module is used to read the latter's #file_info{} and the
actual file content (ie. sendfile(2) is not used in this case).

(cherry picked from commit 2166733628)
2017-01-31 16:19:45 +01:00
Loïc Hoguin
a62cc4260f Fix getting started for new Erlang.mk 2016-01-15 11:22:22 +01:00
Loïc Hoguin
c01dadde57 Update version to 1.1.0-dev 2015-11-16 18:12:29 +01:00
Loïc Hoguin
5fcaf291bc Update rebar.config 2015-11-16 18:12:21 +01:00
Loïc Hoguin
4e73f692b9 Update Cowlib to 1.0.2 and Ranch to 1.2.0 2015-11-16 18:02:35 +01:00
Loïc Hoguin
5179fc4bee Update Erlang.mk 2015-11-16 17:56:37 +01:00
Loïc Hoguin
d08c2ab39d Update to 1.0.4 2015-11-16 16:10:43 +01:00
Loïc Hoguin
04eadae381 Fix crash when using IOlists with some Websocket frames
Backported from Cowlib's patch from Rob Ashton <robashton@codeofrob.com>.
2015-11-16 15:58:37 +01:00
Loïc Hoguin
26a648ef17 Update apt-get before installing things on CI 2015-08-16 20:23:27 +02:00
Loïc Hoguin
b8e4115eb1 Update Cowboy to 1.0.3 2015-08-07 17:42:48 +02:00
Alexey Lebedeff
8c60dd6c1b Use 'Connection' header only when necessary
Fixes #839 when 'Connection: Keep-Alive' wasn't sent in a HTTP/1.0
response. Now the usage of 'Connection' header is consistent with
current protocol version: when this header is not specified explicitly
in the response, HTTP/1.0 implies 'Connection: close' and HTTP/1.1
implies 'Connection: Keep-Alive'. So if current 'Connection' value
matches the default value of current protocol, we won't state obvious
fact in the response; and vice versa.

Amended to fix and improve tests, and revert the variable name
change from HTTP11Headers to StdHeaders. I think it's still good
to leave it as is because it's not really a standard header for
HTTP/1.0, and it's gone from HTTP/2 entirely.
2015-08-07 15:30:09 +02:00
Loïc Hoguin
19a279dfdc Merge branch 'fix-typo-in-cowboy_http' of https://github.com/mocchira/cowboy into 1.0.x 2015-07-26 22:05:05 +02:00
Loïc Hoguin
3195dad766 Merge branch 'use-https-1.0.x' of https://github.com/ahf/cowboy into 1.0.x 2015-07-26 22:04:56 +02:00
Loïc Hoguin
9b424fec2b Dialyzer fixes in cowboy_clock
This is what I get for merging blindly!

and

Fix a compile error introduced in previous commit

(cherry-pick)
2015-07-26 18:34:17 +02:00
Loïc Hoguin
674e5a61e2 Looks like we need an even older Gun version
Oops!
2015-07-26 15:16:10 +02:00
Loïc Hoguin
fbd6ecc6ba Use an older Gun version for testing 1.0.x 2015-07-26 14:59:09 +02:00
Loïc Hoguin
a997f9e382 Reenable later versions for CircleCI 2015-07-26 11:05:19 +02:00
Loïc Hoguin
8a5a3a7260 Disable half the OTP versions temporarily
To allow CircleCI to not timeout...
2015-07-25 23:34:51 +02:00
Loïc Hoguin
1267388416 Add CircleCI to the 1.0 branch
Let's hope it works on first try. LOTS of OTP versions to test!
2015-07-25 21:26:56 +02:00
mocchira
67ab508d9b Fix typo in cowboy_http:asctime_date 2015-07-15 03:26:25 +00:00
Alexander Færøy
d70494eb2e
Use HTTPS dependencies when using Rebar 2015-07-05 23:33:04 +02:00
Loïc Hoguin
79aa25cc03 Update Cowboy to 1.0.2 2015-07-02 22:00:45 +02:00
Loïc Hoguin
df1b3dcd0e Merge branch 'fix-rest-stacktrace' of https://github.com/danielwhite/cowboy into 1.0.x 2015-07-02 21:56:08 +02:00
Loïc Hoguin
82addb8b44 Update erlang.mk 2015-07-01 14:20:10 +02:00
Loïc Hoguin
e5170737d2 Merge branch 'static_with_index' of https://github.com/davidw/cowboy into 1.0.x 2015-05-06 11:50:19 +03:00
Loïc Hoguin
4fb2aacc88 Merge branch 'fix-1' of https://github.com/martinrehfeld/cowboy into 1.0.x 2015-05-06 11:33:27 +03:00
Alex Kovalev
1d99878561 added a comment for non-obvious erlang:cancel_timer 2015-03-26 12:55:42 +03:00
Alex Kovalev
c05143aba8 fixed cowboy_clock inbox overflow if system clock was changed 2015-03-26 11:15:05 +03:00
Daniel White
57671cbbb0 Get stacktrace before executing rest_terminate
At present, the resulting stacktrace will be misleading about where the
underlying error occurred.
2015-03-25 14:23:15 +11:00
David N. Welton
5b9bba9fe3 Add an index.html that is also served statically as the default for / 2015-02-17 11:53:08 +01:00
Martin Rehfeld
aa2d41951a Only address the specific quoted_string issue 2015-01-30 14:11:13 +00:00
Martin Rehfeld
07ef3c32d7 Reply with 400 on if*-match parsing crash 2015-01-30 13:43:55 +00:00
Loïc Hoguin
3d9078018d Update Cowboy to 1.0.1 2014-11-07 14:43:38 +02:00
Loïc Hoguin
6cbc116fa6 Update CHANGELOG 2014-11-07 14:43:04 +02:00
Loïc Hoguin
2eea85aaa7 Update AUTHORS 2014-11-07 14:40:21 +02:00
Loïc Hoguin
f670562a4a Update erlang.mk
This should fix an issue with DEPS on FreeBSD.
2014-11-07 14:31:25 +02:00
Loïc Hoguin
b57f94661f Merge branch 'master' of git://github.com/okeuday/cowboy 2014-08-12 19:01:56 +02:00
Loïc Hoguin
ef0ec79322 Fix incorrect type in cowboy_static manual 2014-08-12 19:01:12 +02:00
Michael Truog
a32a476bf2 Add cowboy_req:part/2 export 2014-08-12 08:31:30 -07:00
Loïc Hoguin
2928456ae8 Merge branch 'patch-1' of git://github.com/asabil/cowboy 2014-08-11 19:25:47 +02:00
Ali Sabil
428653ab36 Fix REST guide reference to accept_missing_post
The guide refers to accept_missing_post instead of allow_missing_post.
2014-08-11 10:58:48 +02:00
Loïc Hoguin
260fc1e60b Handle absolute URIs that lack a path entirely 2014-08-06 11:32:58 +02:00
Loïc Hoguin
3625d6a2e2 Accept absolute URI scheme as uppercase
We should be doing a case insensitive comparison to be correct,
but this is more expensive. Almost all clients send lowercase,
this patch fixes handling of the aws/aws-sdk-php client which
sends uppercase, and no known client sends mixed case so I am
holding back on the more expensive solution for the moment.
2014-08-06 11:15:26 +02:00
Loïc Hoguin
a2fabcdecf Fix language in getting started 2014-08-02 12:55:15 +02:00
Loïc Hoguin
5cf9ac25e5 Update links extend -> ninenines 2014-08-02 12:38:15 +02:00