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
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
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
Gerasimos (Makis) Maropoulos
b394f61326
Merge pull request #958 from meydjer/master
...
Fix article link
Former-commit-id: 2b2aa130d3b4a72b1244e39968dfa38f35249fea
2018-04-02 02:59:19 +03:00
Meydjer Luzzoli
cbb379d541
Fix article link
...
Former-commit-id: 7dc91a47b85bbc31333371cb9a1dac6ad7db53a8
2018-03-31 23:20:21 -03:00
Zeno-Code
4a3e97a9bd
Update README_ZH.md
...
Former-commit-id: 8865a9b486dc56821f3505b25cc8764d641c21bf
2018-03-31 14:20:29 +08:00
Gerasimos Maropoulos
fbf2bd6480
core/router/supervisor:https ForceRSA to true
...
Former-commit-id: 86174563b57b142b1e70da6756a54b12b6d5e353
2018-03-31 06:38:30 +03:00
Zeno-Code
b7bf311058
Update README_ZH.md
...
Former-commit-id: 41af389366ad45114473df779111a8f698e5cfda
2018-03-30 19:18:18 +08:00
Zeno-Code
515fd82873
Update README_ZH.md
...
Former-commit-id: a0c4b2d627621bbd060bd861debcafa21c223710
2018-03-30 00:15:58 +08:00
Zeno-Code
61406dcbae
Update README_ZH.md
...
Former-commit-id: b2392ff60de3fbf5d167cd2f16051ee6dd382948
2018-03-29 23:24:30 +08:00
Zeno-Code
37b5875ab0
Update README_ZH.md
...
Former-commit-id: 981f0266b25e92cb38d767288db3bed112d70399
2018-03-29 03:31:49 +08:00
Gerasimos (Makis) Maropoulos
502b4654d4
fix the bug of lost argument in log function caused by PR: #946
...
Former-commit-id: 80fc2b2ff2455c328bb49b9ddcee519cf8138be9
2018-03-28 17:16:29 +03:00
Chengyumeng
addf984ed3
fix the bug of lost argument in log function
...
Former-commit-id: 566a0c8bff8e77d5d12c1b4d10b3c69be0a962ba
2018-03-28 20:39:56 +08:00
Zeno-Code
2b0280b646
Update README.md
...
Former-commit-id: 86b6b483349c30211234626b91723a8f35d6a12f
2018-03-28 12:23:06 +08:00
Zeno-Code
58c9de3ab7
Update README_ZH.md
...
Former-commit-id: 61d8df659e22d518de09d4a35cdf93277b5bc3d6
2018-03-28 12:22:29 +08:00
Zeno-Code
a79496de6d
Create README_ZH.md
...
Former-commit-id: 35656f423a935b9fe4c0f639bdcac591b98c4667
2018-03-28 12:21:17 +08:00
Zeno-Code
fbb3bb89f0
Update README.md
...
Former-commit-id: ea1325f29246fa90219344434f5bc7e9317e62db
2018-03-28 11:45:05 +08:00
Zeno-Code
bdd9948111
Merge pull request #13 from kataras/master
...
Up
Former-commit-id: 95b3b37813f27cb14c63cf82e61c5d85f45af820
2018-03-28 11:23:32 +08:00
Gerasimos (Makis) Maropoulos
cba023c51f
Chinese Translation updates | merge pull request #945 from Zeno-Code/master
...
Former-commit-id: 443df63780fd9ab5f4b6e02d645ccb4af3fe9e6b
2018-03-27 10:08:13 +03:00
Gerasimos (Makis) Maropoulos
b579e89aaa
add more information for access log merge pull request #946 from Chengyumeng/feature/logger
...
Former-commit-id: 91fbc9420c52287231a284aa8092764c7273e987
2018-03-27 10:06:29 +03:00
Gerasimos Maropoulos
fc0f27c4fc
Do not create the global configuration in homedir by-default, as, correctly, requested on chat. Use iris.WithGlobalConfiguration with a pre-defined iris.yml file on your home directory, existing users will not have any issues, new one will have to create the file before
...
Former-commit-id: 033f7e96693b13f87b44b445ed166328fea6e0a0
2018-03-27 09:59:29 +03:00
Chengyumeng
edc24d529f
add more information for access log
...
Former-commit-id: 60517837c5bfdb2d879909c4b413e83cbd10321a
2018-03-26 15:50:33 +08:00
Zeno-Code
dfe6b3fa1e
Update HISTORY_ZH.md
...
Former-commit-id: f1d0611883032242f673c09b901bc87c95464f55
2018-03-24 18:24:06 +08:00
Zeno-Code
042a82a4aa
Merge pull request #12 from kataras/master
...
merge
Former-commit-id: 3edcae11226c25f90064a3d5f4ab28787234f881
2018-03-24 18:02:26 +08:00
Gerasimos Maropoulos
66d367b255
Update to version 10.5.0 | Read HISTORY.md for more
...
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
2018-03-24 10:39:44 +02:00
Gerasimos (Makis) Maropoulos
2955edd81c
Merge pull request #939 from StefanPahlplatz/patch-1
...
Fixed a typo
Former-commit-id: 5208cc634d069f373d282663a001937bb657390b
2018-03-24 03:10:49 +02:00
Stefan Pahlplatz
5aba0d0ff4
Fixed a typo
...
Former-commit-id: 4d3a281839fe2dc72d1cb67af0f6d3b04782968e
2018-03-22 12:02:22 +01:00
Gerasimos (Makis) Maropoulos
1a2af3ccac
Update Chinese translation, merge pull request #936 from @Zeno-Code
...
Former-commit-id: 12fac905886481825ebdc97763546ee2ce531d85
2018-03-21 09:01:13 +02:00
Gerasimos (Makis) Maropoulos
9bd70d7c91
Merge pull request #938 from kataras/dev
...
misspell fixes
Former-commit-id: 3becabe965f0e92f41ae65a63e2d8f8e7bc9937b
2018-03-21 09:00:23 +02:00
Gerasimos Maropoulos
ff41c672ce
misspell fixes
...
Former-commit-id: 7efa2d8641d8fc324231989cbfcc0905f1d90009
2018-03-21 08:59:37 +02:00
Zeno-Code
194b7c8ad9
Update HISTORY_ZH.md
...
Former-commit-id: 3b2e3d46dd35192234408edbf1617be6cb234ce6
2018-03-19 10:19:41 +08:00
Zeno-Code
8973565acb
Merge pull request #11 from kataras/master
...
.
Former-commit-id: 5c2fc434d0dfb1371753db2b229998a397761990
2018-03-19 09:58:25 +08:00
Gerasimos (Makis) Maropoulos
7b2409fc7f
New middlewares for various client cache methods that can speed your pages even more
...
Former-commit-id: 243a625144fc52255ed21474055f52dd5b33d257
2018-03-18 14:33:15 +02:00
Gerasimos Maropoulos
8e9deec4ab
Add one more browser (and 304 server) cache method using ETag and If-None-Match headers
...
And replace the 'ctx.WriteWithExpiration' with simple 'ctx.Write' at 'StaticEmbeddedHandler' of core/router/fs.go, now that we have plenty of options for client cache give the end-dev the oportunity to use them or not on static embedded handlers
Former-commit-id: 9c9e2f3de3c5ad8c9e14e453b67e6b649b02bde8
2018-03-18 11:55:05 +02:00
Gerasimos (Makis) Maropoulos
fae3906587
Add some useful middlewares for browser caching
...
By @speedwheel via PR #934
Former-commit-id: 653815c2ef09039ee2a867ec1d95d984997a179a
2018-03-17 17:12:48 +02:00
speedwheel
46453ff522
fix import path order, guidelines of iris
...
Former-commit-id: 4c938dd13691b8f753a7d1b00a6fa2da56ad4e99
2018-03-17 06:19:49 +02:00
speedwheel
50164f082c
new handlers for client (i.e browser) catching: cache.NoCache and cache.StaticCache including tests
...
Former-commit-id: 18975297c8b96c7f9d5ff757f92051f6b10933c1
2018-03-17 06:15:13 +02:00
Gerasimos Maropoulos
bc45e6444c
Cleanup of some old code
...
Remove the StaticCacheDuration unused package-level variable from context/context.go and /core/router/api_builder.go it should be removed a year ago, now all the cache funcs and middlewares accept their own options | Remove duplicated header keys that are used on both context/context.go and core/router/fs.go by exporting context's one.
Former-commit-id: 2a5c840d26b32144d2b5b3173a1e4bb4324cecba
2018-03-17 02:27:25 +02:00
Gerasimos Maropoulos
7689e48132
Merge branch 'master' of https://github.com/kataras/iris
...
Former-commit-id: 901fb7a50f0d60962f5c7a317e41d65d8a0ee993
2018-03-16 12:39:36 +02:00
Gerasimos Maropoulos
8cec6a6f9b
remove any trailing slash that may passed on StaticEmbeddedHandler (although all examples shows the correct way but you never know)
...
Former-commit-id: 50ab9ddb2e738b4061622ac9ebcfec30e0cdecfa
2018-03-16 12:38:13 +02:00
Gerasimos (Makis) Maropoulos
75601979c5
Merge pull request #931 from hyhkjiy/patch-1
...
Update gzip_response_writer.go
Former-commit-id: 35d47ed1354ec72959c168563d43cdd63a269fdc
2018-03-16 12:33:24 +02:00
Gerasimos Maropoulos
87036fdb6c
add the new StaticEmbeddedGzip on the Party interface, it works within multiple levels like the StaticEmbedded, so why not
...
Former-commit-id: f62c863344a06277935730449d5466fecbc64993
2018-03-15 23:15:10 +02:00
Gerasimos Maropoulos
89022c7051
add some tests for the content type for the embedding files and gziped embedded files
...
Former-commit-id: b7fe470f33efcdf70df3e41ad880bbd4704cbb4a
2018-03-15 23:09:07 +02:00
Gerasimos Maropoulos
2d8652d7fb
fix miss content type occurred by commenting this on the previous commit
...
Former-commit-id: 3320cf863da92cb70f74b046a6a2475f83728932
2018-03-15 22:46:23 +02:00
hyhkjiy
0df0bb8052
Update gzip_response_writer.go
...
The Context.SendFile function Send file size more than 65536 byte with bug.
Former-commit-id: 5ad4c80eb20a7e6663fc460ec68e238dd45a918a
2018-03-14 19:46:55 +08:00
Gerasimos Maropoulos
56215eeb71
Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md
...
Former-commit-id: 4f8b8c95c1b107a9be3b1ef6835ece949a75ceb6
2018-03-14 07:17:35 +02:00