Commit Graph

1374 Commits

Author SHA1 Message Date
Gerasimos Maropoulos
f83e125d7f fix https://github.com/kataras/iris/issues/1020, redis database stores the int as float64, so make that type assertion on GetInt as well
Former-commit-id: d29abdfe3a39fa1e046acbc5d118421a153d9c04
2018-06-03 02:47:48 +03:00
Gerasimos Maropoulos
b4856d542d Cookies: Ability to set custom cookie encoders to encode the cookie's value before sent by ctx.SetCookie and ctx.SetCookieKV and cookie decoders to decode the cookie's value when retrieving from ctx.GetCookie. That was the second and final part relative to a community's question at: https://github.com/kataras/iris/issues/1018
Former-commit-id: 53b6810076c8db8646df335d57a30c78b23cd9b8
2018-06-02 16:35:18 +03:00
Gerasimos Maropoulos
fcff62d5b4 Some minor but helpful additions, like CookieOption. Relative: https://github.com/kataras/iris/issues/1018. Simple cookies example added too. Cookie encoding (side by side with the already session's cookie id encoding) and version upgrade will come tomorrow with a new HISTORY.md entry as well, stay tuned!
Former-commit-id: d14181fac998d32d77690b1b3e42b6c7c72f1ace
2018-06-02 07:28:40 +03:00
Gerasimos Maropoulos
f84248cb4e middleware/logger: new configuration field, defaults to false: Query bool, if true prints the full path, including the URL query as requested at https://github.com/kataras/iris/issues/1017
Former-commit-id: 03c8fc523a8ba955dae43e4c7e9498fc3d86a1c8
2018-05-31 01:39:23 +03:00
Gerasimos (Makis) Maropoulos
5de17a08f9 Merge pull request #1015 from tkhkokd/tkhkokd-readmeJPN
README_JPN added

Former-commit-id: 196a9cedbc4287ac8a5099b6ca46207563a58070
2018-05-30 09:53:52 +03:00
Gerasimos (Makis) Maropoulos
f9bfe4a70a Merge pull request #1008 from gschri/adding_readme_pt_br
Create README_PT_BR.md

Former-commit-id: 085749f0d4bcf724a9cd1b459f83ab6037309280
2018-05-30 09:51:19 +03:00
Gerasimos (Makis) Maropoulos
5884d87bfa Merge pull request #1009 from Schatzman/patch-1
Fix Typo in CSRF Example signup.html

Former-commit-id: 2fe1c222e46843d8c2a8432429bd941bb9012332
2018-05-30 09:49:53 +03:00
Takahiko Okada
0b24e173a8 fixed typos and wording
fixed typos and wording

Former-commit-id: 39b95630c1d1c8935a4f8e60e179ec946b22f3d1
2018-05-29 21:23:59 +02:00
Takahiko Okada
1fe1ee17e0 README Japanese Version Created
README Japanese Version Created

Former-commit-id: 2c90894380f691ffb49ef16b5c572fbbfe3cc8d3
2018-05-29 21:15:06 +02:00
Schatzman
008dfe869c Fix typo
"Procceed" -> "Proceed"

Former-commit-id: 7f9b983d4281bf3d8492e2722e327e551ed7e716
2018-05-26 14:23:19 -06:00
Gerasimos Maropoulos
beef97fd5d Update vendor for Pug (Jade) Parser and add Iris + Pug examples in the _examples/view folder, relative to https://github.com/kataras/iris/issues/1003
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
2018-05-26 22:49:48 +03:00
gschri
4441da3d8e Create README_PT.md
Translated README.md to Brazilian Portuguese and created README_PT_BR.md file with the translation.

Former-commit-id: 33163dacf50647e598d4d1962675b79d86f20844
2018-05-26 11:29:32 -03:00
Gerasimos Maropoulos
94b93484b5 Update to version 10.6.5: 1 New Feature And Indonesia Translation | Read HISTORY.md
Former-commit-id: 4788e36e52f6b40c7e15120e0675c097eabf0f0d
2018-05-21 07:40:43 +03:00
Gerasimos (Makis) Maropoulos
8c41968905 Merge pull request #1000 from haritsfahreza/master
Add README_ID.md

Former-commit-id: 13a3b5d7b63f4e0d8a849694112ecb599291c12a
2018-05-20 23:35:09 +03:00
Gerasimos (Makis) Maropoulos
cf00188008 Merge pull request #1005 from chengyumeng/fix/cookie-subdomain
fix cookie bug when domain is such as 'subsubdomain.subdomain.localho…

Former-commit-id: cd07434b230d315eea61245ad90efa00e7614fdc
2018-05-20 23:34:49 +03:00
zhangpenghao-pd
5920df909e fix cookie bug when domain is such as 'subsubdomain.subdomain.localhost.com'
Former-commit-id: 3a19ba09098cdc0f01299126d05c8d6d6387415b
2018-05-18 13:09:07 +08:00
Harits Fahreza Christyonotoputra
a21e85a613 Create HISTORY_ID.md
Create HISTORY_ID.md to translate HISTORY.md into Bahasa Indonesia


Former-commit-id: ebe8b677b61f665419946d0a36360fd571e4e202
2018-05-15 14:21:19 +07:00
Harits Fahreza Christyonotoputra
74d099f283 Change FREE word into GRATIS
Translate FREE word into GRATIS to make it perfect


Former-commit-id: 261ffcc34db6acdea6c170e50313c90020e15ac2
2018-05-15 02:00:25 +07:00
Harits Fahreza Christyonotoputra
cd5a70744c Create README_ID.md
Translate README.md into Bahasa Indonesia and create README_ID.md


Former-commit-id: efd9027dcac9edf8d2c12d357023a9a46f451ab7
2018-05-15 01:57:33 +07:00
Gerasimos Maropoulos
485cfbc838 Update to version 10.6.4 | Read HISTORY.md for the bug fixes
Former-commit-id: 4b981358f4e89807d1ccd8357a53641e770ab075
2018-05-09 01:36:04 +03:00
Gerasimos Maropoulos
4d9909cba5 fix https://github.com/kataras/iris/issues/996
Former-commit-id: bcb8905faf20e08be1ef9ec203385a1a7440eebd
2018-05-09 01:28:26 +03:00
Gerasimos Maropoulos
0fc4436da6 fix https://github.com/kataras/iris/issues/995
Former-commit-id: 7f743e18c1202eaa19062ca4304611194a10962c
2018-05-07 16:49:17 +03:00
Gerasimos Maropoulos
0087bc218d Update to version 10.6.3. Read HISTORY.md. It contains a very important fix for the websocket servers caused some time ago by an external contributor
Former-commit-id: 1626ff0660801a28a5034ecd2788e87561c55f41
2018-05-02 17:57:01 +03:00
Gerasimos Maropoulos
0db2afea93 websocket: fix a bug on emit on specific room when it doesn't exist it sends to all connections caused by a third-party contributor's PR...
Former-commit-id: de6fddadd7cef8537ad1d1aff1acd991e4cf99cf
2018-05-02 17:47:14 +03:00
Gerasimos Maropoulos
087c8c8b3a Update to (minor) version 10.6.2. Added: websocket/Connection#OnPong and websocket/Connection#OnError(func(error)) instead of func(string) relative issues: https://github.com/kataras/iris/pull/988 and https://github.com/kataras/iris/issues/987 respectfully.
Former-commit-id: 76d4fda4ab4f34f8a251c8c2d5bb1ae7c3ef7047
2018-05-02 06:40:18 +03:00
Gerasimos (Makis) Maropoulos
d39a5b913d Merge pull request #988 from Kirguir/master
Websocket: added OnPong to Connection #986
Former-commit-id: fa14ab8fc1a7b5afd40744dbdf0a163be499af59
2018-05-02 06:26:41 +03:00
Kirguir
655a19ea74 Websocket: added OnPong to Connection #986
see issue #986


Former-commit-id: 964d393d40fc7e64a8bf02eae08d97fd5f847483
2018-04-30 14:27:28 +03:00
Gerasimos Maropoulos
4eeffd07c7 Update the _examples/http_request/upload-file to fill the gap, relative discussion: https://github.com/kataras/iris/issues/979
Former-commit-id: a113e8815a6a2821a80ac424f52302528a6e71b5
2018-04-28 14:48:09 +03:00
Gerasimos Maropoulos
3c6d1f2fa3 _examples/README: add bolt session database example link
Former-commit-id: 373f25cc016fbdad84e208123c024999d35a47e4
2018-04-26 08:07:09 +03:00
Gerasimos (Makis) Maropoulos
e35513d3a9 Update Chinese translation for HISTORY_ZH.md and README_ZH.md
Former-commit-id: 2150b120c3da0200814c9895d19e38e76df61709
2018-04-26 08:03:45 +03:00
Zeno-Code
614b46f97e Update README_ZH.md
Former-commit-id: 03c595e252ecdf5b52697ca201e20ea96cabbbd5
2018-04-25 19:19:05 +08:00
Zeno-Code
35c4d6d315 Update HISTORY_ZH.md
Former-commit-id: 3531ea73dc42bd302f327a5e398d6000400702e3
2018-04-25 19:17:20 +08:00
Gerasimos Maropoulos
5dc8cbcefc websocket: expose Connection#Write in favor of https://github.com/kataras/iris/issues/976
Former-commit-id: 74cba9b2bfb4d5cc874eba3330dc9c7bad2ffac5
2018-04-25 13:40:40 +03:00
Gerasimos Maropoulos
59f138963b fix https://github.com/kataras/iris/issues/975
Former-commit-id: 752a788263f8bd9219690b3b63b1183546fb91e5
2018-04-25 13:10:27 +03:00
Gerasimos Maropoulos
b22151d4b7 Update to version 10.6.1 | Re-implement the BoltDB as built'n session database and more. Please read the HISTORY file for further details
Former-commit-id: fa68a914bec5fe4f595bdeaea84ecab6374ba643
2018-04-25 05:29:19 +03:00
Gerasimos Maropoulos
cfe484f769 Update to Version 10.6.0 and add Video Courses section at READMEs
Former-commit-id: 2a6bf807b989e6b3d02ec6d1d46b42953507535e
2018-04-22 16:22:24 +03:00
Gerasimos Maropoulos
06c17bc8bb sessions: add OnDestroy event, relative to: https://github.com/kataras/iris/issues/969
Former-commit-id: de9ad83a663f44d62dbb7520595cacb21a7f694a
2018-04-22 14:13:40 +03:00
Gerasimos (Makis) Maropoulos
6862501f7f Merge pull request #964 from Chengyumeng/fix/cookie
fix when destroy session can't remove cookie in subdomain

Former-commit-id: 5caf0fa5d92f53ba7b744dc1b3b7d47f688a96db
2018-04-22 14:01:48 +03:00
Gerasimos (Makis) Maropoulos
e09a7e32ed update to use the formatCookieDomain
Former-commit-id: eb1f56c33dbf56bdc9d9e8df5f3f4915ff3cec42
2018-04-22 14:00:08 +03:00
Gerasimos (Makis) Maropoulos
d4c20b8e2a update cookie.go to be aligned with quality standars
Former-commit-id: 54aea6a281106f60000645efc7f77ea04e72d7ac
2018-04-22 13:59:21 +03:00
Gerasimos Maropoulos
b62080c4bb Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy) as requested by almost everyone. https://github.com/kataras/iris/issues/969
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Gerasimos (Makis) Maropoulos
f113872b7d A better http_responsewriter/stream-writer example, see SSE example for server-side events
Former-commit-id: 635cadf6bac376c2b7b805523ab8d9d6472a5502
2018-04-21 20:46:16 +03:00
Gerasimos (Makis) Maropoulos
4ccf31eb44 Merge pull request #972 from wozz/patch-1
Fix open redirect

Former-commit-id: c2f89d48d6fd1e0b96f057d32cff58147b83b5f0
2018-04-21 13:04:20 +03:00
wozz
21a31afb55 Update handler.go
Former-commit-id: f6bd29025c97d04b058584fecb8e0fee91021cb1
2018-04-20 16:56:12 -07:00
wozz
923d151190 Fix open redirect
Fix open redirect by using strings.Trim.

Another option would be to use path.Clean similar to here, but I'm unsure of side effects that may have for this use case: https://github.com/golang/go/blob/master/src/net/http/server.go#L2034

See a PoC of this issue with this link: https://iris-go.com//google.com/

Former-commit-id: fa422e436353a7e0699f0b346f3679455c5d965b
2018-04-20 16:49:30 -07:00
Chengyumeng
bb59ad8cf2 change code duplication from update/delete cookie
Former-commit-id: 87980f8ca6dc61a4fc3d722b90967154a74afc91
2018-04-13 19:06:24 +08:00
Gerasimos Maropoulos
cb69df2ccf Add a very simple usage-example for sending server side events
Former-commit-id: 6df287d915a772bcae3f2f98445676aba39a2bc6
2018-04-10 21:01:24 +03:00
Chengyumeng
8f32e991e8 fix when destroy session can't remove cookie in subdomain
Former-commit-id: 6ad05d62e03233c61a54f11c36867041ecba3f4d
2018-04-04 15:25:00 +08:00
Gerasimos Maropoulos
989cb3f045 update vendor
Former-commit-id: 8e7fca843e404d34fec071415191657ea554dd05
2018-04-03 13:07:23 +03:00
Gerasimos (Makis) Maropoulos
e9e2998538 Merge pull request #950 from Zeno-Code/master
Examples README_ZH.md

Former-commit-id: 3e1db0582142a6240921cfb303d31e0a45e96b87
2018-04-02 02:59:57 +03:00