aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2015-11-16Update to 1.0.41.0.41.0.xLoïc Hoguin
2015-11-16Fix crash when using IOlists with some Websocket framesLoïc Hoguin
Backported from Cowlib's patch from Rob Ashton <[email protected]>.
2015-08-07Update Cowboy to 1.0.31.0.3Loïc Hoguin
2015-08-07Use 'Connection' header only when necessaryAlexey Lebedeff
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-07-26Merge branch 'fix-typo-in-cowboy_http' of https://github.com/mocchira/cowboy ↵Loïc Hoguin
into 1.0.x
2015-07-26Dialyzer fixes in cowboy_clockLoïc Hoguin
This is what I get for merging blindly! and Fix a compile error introduced in previous commit (cherry-pick)
2015-07-15Fix typo in cowboy_http:asctime_datemocchira
2015-07-02Update Cowboy to 1.0.21.0.2Loïc Hoguin
2015-07-02Merge branch 'fix-rest-stacktrace' of https://github.com/danielwhite/cowboy ↵Loïc Hoguin
into 1.0.x
2015-05-06Merge branch 'fix-1' of https://github.com/martinrehfeld/cowboy into 1.0.xLoïc Hoguin
2015-03-26added a comment for non-obvious erlang:cancel_timerAlex Kovalev
2015-03-26fixed cowboy_clock inbox overflow if system clock was changedAlex Kovalev
2015-03-25Get stacktrace before executing rest_terminateDaniel White
At present, the resulting stacktrace will be misleading about where the underlying error occurred.
2015-01-30Only address the specific quoted_string issueMartin Rehfeld
2015-01-30Reply with 400 on if*-match parsing crashMartin Rehfeld
2014-11-07Update Cowboy to 1.0.11.0.1Loïc Hoguin
2014-11-07Update erlang.mkLoïc Hoguin
This should fix an issue with DEPS on FreeBSD.
2014-08-12Add cowboy_req:part/2 exportMichael Truog
2014-08-06Handle absolute URIs that lack a path entirelyLoïc Hoguin
2014-08-06Accept absolute URI scheme as uppercaseLoïc Hoguin
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-01Update Cowboy to 1.0.01.0.0Loïc Hoguin
2014-07-14Support ad-hoc keep-alive for HTTP/1.0 ClientsFred Hebert
Only go for keep-alive if they submit a 'connection: keep-alive' header in the request, keep behaviour the same otherwise. The new RFC 7230 (http://tools.ietf.org/html/rfc7230#section-6.3) states: If the received protocol is HTTP/1.0, the "keep-alive" connection option is present, the recipient is not a proxy, and the recipient wishes to honor the HTTP/1.0 "keep-alive" mechanism, the connection will persist after the current response; Even though clients are discouraged from doing so in Appendix A.1.2 (http://tools.ietf.org/html/rfc7230#appendix-A.1.2)
2014-07-12Remove deprecated body reading interfaceLoïc Hoguin
2014-07-12Remove useless todo commentsLoïc Hoguin
2014-07-12Drop R15 supportLoïc Hoguin
2014-07-12Reply with 400 on header parsing crashLoïc Hoguin
This is a first step to improve the HTTP status codes returned by Cowboy on crashes. We will tweak it over time. Also fixes a small bug where two replies may have been sent when using loop handlers under rare conditions.
2014-07-07Merge branch 'fix-spdy-parse-frame' of git://github.com/voluntas/cowboyLoïc Hoguin
A fix for a possible bug has been made to the original patch.
2014-06-30Return 422 instead of 400 when AcceptResource returns falseLoïc Hoguin
422 is undefined for HTTP and interpreted as 400.
2014-06-30Update specs that were too wideLoïc Hoguin
2014-06-28Fix cowboy_spdy parse frameNakai Ryosuke
2014-06-10Update Cowboy to 0.10.00.10.0Loïc Hoguin
2014-06-10Fix specs and a weird value in cowboy_spdyLoïc Hoguin
2014-06-10Merge branch 'binary-expires' of git://github.com/NineFX/cowboyLoïc Hoguin
2014-06-10Allow users to pass a raw binary() as the expires header.Drew Varner
2014-06-03Add a return value to onresponse hook to override status/headersLoïc Hoguin
This would allow us to override them without messing up the body, and would make it usable with the static file handler for example. Experimental at this point.
2014-06-02Add request body reading optionsLoïc Hoguin
The options were added to allow developers to fix timeout issues when reading large bodies. It is also a cleaner and easier to extend interface. This commit deprecates the functions init_stream, stream_body and skip_body which are no longer needed. They will be removed in 1.0. The body function can now take an additional argument that is a list of options. The body_qs, part and part_body functions can too and simply pass this argument down to the body call. There are options for disabling the automatic continue reply, setting a maximum length to be returned (soft limit), setting the read length and read timeout, and setting the transfer and content decode functions. The return value of the body and body_qs have changed slightly. The body function now works similarly to the part_body function, in that it returns either an ok or a more tuple depending on whether there is additional data to be read. The body_qs function can return a badlength tuple if the body is too big. The default size has been increased from 16KB to 64KB. The default read length and timeout have been tweaked and vary depending on the function called. The body function will now adequately process chunked bodies, which means that the body_qs function will too. But this means that the behavior has changed slightly and your code should be tested properly when updating your code. The body and body_qs still accept a length as first argument for compatibility purpose with older code. Note that this form is deprecated and will be removed in 1.0. The part and part_body function, being new and never having been in a release yet, have this form completely removed in this commit. Again, while most code should work as-is, you should make sure that it actually does before pushing this to production.
2014-04-26Merge branch 'language-range-header' of git://github.com/NineFX/cowboyLoïc Hoguin
2014-04-26Make loop handlers work with SPDYLoïc Hoguin
Adds a loop_handler test suite that runs all tests under HTTP, HTTPS, SPDY each with and without the compress option enabled. Fixes output filtering that used to filter more than it should have. This forces us to parse the string sent by the emulator, which means it's probably not perfect yet. But it should at least not hide errors we want to see. Fix a crash in the output filtering code that entirely disabled output. Now when there is a crash the normal tty output is restored. Handlers are now in test/handlers/ as they can be reused between suites. Only generate a single certificate for the whole ct run to speed things up when we got many different test groups each needing certificates.
2014-04-17Merge branch 'fix/basic-auth-empty-password' of git://github.com/soundrop/cowboyLoïc Hoguin
2014-03-27Update cowlib to 0.6.1Loïc Hoguin
2014-03-27Add +warn_missing_spec and fix specsLoïc Hoguin
2014-03-26Remove outdated comments, all edoc, plus a few minor tweaksLoïc Hoguin
2014-03-25Make the latin1 cyrillic route tests work on R17+Loïc Hoguin
Instead of relying on the encoding of the file we now simply have list of numbers as they would be inside a latin1 file.
2014-03-25Don't flush the resp_sent message if connection is closedLoïc Hoguin
Tiny optimization.
2014-03-24Remove cowboy_client; use gun for the HTTP test suiteLoïc Hoguin
2014-03-24Use the new chunked and identity transfer decoding code from cowlibLoïc Hoguin
2014-03-24Use cow_http_hd:parse_transfer_encoding/1 where applicableLoïc Hoguin
2014-03-24Use cow_http_hd:parse_content_length/1 where applicableLoïc Hoguin
2014-03-24Use cow_http_hd:parse_connection/1 where applicableLoïc Hoguin
2014-03-10Remove cowboy_http:urldecode/1 and urlencode/1Loïc Hoguin
Use cow_qs:urldecode/1 and cow_qs:urlencode/1 instead