-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed cors origin port issue #59
Closed
Closed
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
d8d24b1
.gitignore: add .eunit and .rebar
Ledest 27e46b0
leptus: replace depracated erlang:now/0 to os:timestamp/0
Ledest 5e06198
leptus_req: remove obsoleted cowboy_req's parameter 'infinity' in bod…
Ledest 7704a34
leptus_req: add qs_vals/1
Ledest 43f4247
leptus_pt: update check_clauses/1
Ledest 0335692
.gitignore: add .rebar
Ledest 5222a7e
leptus: add ssl and its deps to ensure_deps_started/0
Ledest 9c0b2ff
remove reloader
Ledest 370278c
remove support of jiffy JSON encode/decoder
Ledest a584988
leptus: add callbacks description for 'leptus' behaviour
Ledest 59eb766
rebar.config: update deps
Ledest e489752
leptus_req: fix unpack/decode JSON and msgpack
Ledest a725e5f
leptus_pt: generate specs for routes/0 and allowed_methods/1
Ledest 2c670c7
Fixed cors origin port issue
lukyanov ffc0111
Add new CORS-specific callback `allowed_headers`
lukyanov f77f23c
Treat "application/json; charset=utf-8" as json as well
lukyanov b870cd1
leptus_req: update body/1 to proper support "application/json", "appl…
Ledest 0b1e5c4
leptus.app: clean up
Ledest 6eb0495
update .travis.yml
Ledest 9d9d0be
rebar.config: update msgpack deps
Ledest 4e7f382
Revert "rebar.config: update msgpack deps"
Ledest e7d9405
rebar.config: update deps
Ledest bb36fc1
add rebar.config.script
Ledest 89e8aed
rebar.config: update msgpack deps
Ledest eb1daac
update rebar.config.script
Ledest f90b658
.travis.yml: remove R15B03-1
Ledest d16c5e0
leptus_handler: replace application/x-msgpack to application/msgpack …
Ledest 75e340e
README.org: update travis-ci icon
Ledest 478d9eb
replace 'application/x-msgpack' to 'application/msgpack' in tests and…
Ledest 0de0507
add support 'application/erlang' content type
Ledest 627e021
leptus_handler: fix msgpack packer options (for msgpack-erlang >= 0.5)
Ledest 92b5440
requre Erlang/OTP >= 18; remove workarounds for Erlang/OTP < 18
Ledest f8692b2
update .travis.yml
Ledest c5d9169
update README.org
Ledest 9216851
README: update cowboy's URL
Ledest e107f08
Merge branch 'master' of https://github.com/Ledest/leptus into Ledest…
lukyanov aad4fa4
Merge branch 'Ledest-master'
lukyanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
language: erlang | ||
otp_release: | ||
- R16B | ||
- R15B03 | ||
- R15B02 | ||
- R15B01 | ||
- R15B | ||
notifications: | ||
email: false | ||
irc: "chat.freenode.net#leptus" | ||
on_success: change | ||
on_failure: change | ||
install: "make deps" | ||
script: "make test" | ||
otp_release: | ||
- 20.1 | ||
- 19.3 | ||
- 18.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
%%-*- mode: erlang -*- | ||
{require_min_otp_vsn, "18"}. | ||
|
||
{deps, [ | ||
{cowboy, ".*", {git, "git://github.com/extend/cowboy.git", {tag, "0.9.0"}}}, | ||
{jiffy, ".*", {git, "git://github.com/davisp/jiffy.git", {tag, "0.8.5"}}}, | ||
{jsx, ".*", {git, "git://github.com/talentdeficit/jsx.git", {tag, "v1.4.5"}}}, | ||
{msgpack, ".*", {git, "git://github.com/msgpack/msgpack-erlang.git", {tag, "0.2.8"}}} | ||
]}. | ||
{deps, [{cowboy, ".*", {git, "https://github.com/extend/cowboy.git", {branch, "1.0.x"}}}, | ||
{jsx, ".*", {git, "https://github.com/talentdeficit/jsx.git", {branch, "master"}}}, | ||
{msgpack, ".*", {git, "https://github.com/msgpack/msgpack-erlang.git", {branch, "master"}}}]}. | ||
|
||
{clean_files, ["*.beam", "test/*.beam", "erl_crash.dump"]}. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naive question.. what is the effect of removing jiffy here? I am using a combination of leptus and Jiffy in a few projects; is Jiffy completely interchangeable with msgpack, such that jiffy + leptus 1.0.0 (your proposal here) is fine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I didn't meant this PR be such big. It is actually my mistake as I initially made a PR from my master branch. Now I added a lot of stuff to my master and it all appeared here. I'm going to close this PR.
As regards to your question, jiffy has been removed as an alternative to jsx (https://github.com/talentdeficit/jsx.git). leptus originally supported two different JSON libraries, in my changes it supports only one (jsx). msgpack is still supported as before.