The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-06-07

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 meshl joined #mojo
00:08 neyasov__ joined #mojo
00:30 marty joined #mojo
00:30 davido_ joined #mojo
00:41 disputin joined #mojo
01:35 klapperl_ joined #mojo
01:48 drift joined #mojo
02:11 disputin joined #mojo
03:33 davido_ joined #mojo
03:41 basic6 joined #mojo
04:42 crab the "Forwarded" field standardised in RFC7239 kinda sucks.
04:43 crab but tl;dr: Forwarded: for=a.b.c.d;proto=https;host=blah replaces all the X-Forwarded-{For,Proto} hacks
04:43 crab so that's nice.
04:44 crab i'll implement support for it, and we can deprecate X-Forwarded-*
04:44 Adurah Gotta handle 'em all!
04:44 crab after all generating Forwarded is no harder than X-Forwarded-blah
04:47 crab thank you, http, for yet another complicated header field.
04:56 d4rkie_ joined #mojo
04:56 preaction ooh, i like redirect code 308
04:56 preaction execute the _exact same request_ again
04:57 preaction ahh. 307 does that too, except 308 is permanent
05:06 crab sri: when you wake up, i'd appreciate advice about how to handle the forwarded header
05:11 d4rkie joined #mojo
05:16 rem_lex|pivo joined #mojo
05:58 neyasov__ joined #mojo
06:03 dotandimet joined #mojo
06:32 Vandal joined #mojo
06:51 mire__ joined #mojo
07:15 neyasov__ joined #mojo
07:16 denis_boyun joined #mojo
07:20 denis_boyun joined #mojo
07:34 denis_boyun_ joined #mojo
07:53 mire__ joined #mojo
08:02 denis_boyun joined #mojo
08:41 basiliscos joined #mojo
08:43 dotandimet joined #mojo
08:58 rem_lex| joined #mojo
09:24 neyasov__ joined #mojo
09:25 mport joined #mojo
09:27 neyasov___ joined #mojo
09:28 cpan_mojo Statocles 0.010 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.010 (depends on Mojolicious)
09:53 mire joined #mojo
09:55 batman https://github.com/jhthorsen/mojolicious-plugin-netspayment # this is for payments in .no, but if anyone would like to give me feedback, then please :)
10:10 meshl joined #mojo
10:28 neyasov___ joined #mojo
10:33 neyasov____ joined #mojo
10:42 sri crab: which servers are supporting it?
10:48 alnewkirk joined #mojo
10:49 basiliscos joined #mojo
10:50 dgikiller joined #mojo
10:54 sri crab: anyway, make a branch and we'll merge it in case it gets adopted
11:07 good_news_everyon joined #mojo
11:07 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/fxsbnA
11:07 good_news_everyon mojo/master b258fc1 Sebastian Riedel: link to new RFCs
11:07 good_news_everyon left #mojo
11:08 neyasov____ joined #mojo
11:10 sh4 joined #mojo
11:14 good_news_everyon joined #mojo
11:14 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/uBJcrQ
11:14 good_news_everyon mojo/master f3ca3b8 Sebastian Riedel: a few more RFC links
11:14 good_news_everyon left #mojo
11:15 dgikiller joined #mojo
11:21 good_news_everyon joined #mojo
11:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/JPfuww
11:21 good_news_everyon mojo/master ba4d20b Sebastian Riedel: relative Location headers are no longer broken
11:21 good_news_everyon left #mojo
11:35 crab it's no more difficult to generate than X-Forwarded-Proto is now
11:35 crab but i wouldn't be surprised if nothing supported it
11:38 neyasov____ joined #mojo
11:49 sri seems like the easiest way to support it would be a Mojo::Content::forwarded method that tokenizes the header to something like [{for => '127.0.0.1', proto => 'https'}]
11:49 sri which then gets used by everything else we already have
11:54 asarch joined #mojo
11:55 crab sri: that's approximately what i decided to do. thanks.
11:55 crab Fast-forwarded forwarded to master.
11:56 crab that's going to take quite some getting used to
11:58 sri we also need to make sure there's no attack vector
11:59 d4rkie joined #mojo
11:59 sri otherwise it has to be a 6.0 change
11:59 d4rkie joined #mojo
12:03 crab you mean the way a request can include X-Forwarded-Proto https and unless you unset it on the reverse proxy, it'll pass it along and we'll mistakenly think it's an https connection?
12:04 crab or are you thinking of some other kind of problem?
12:07 sri that's what i'm thinking of
12:07 sri also proxies indiscriminately forwarding Forwarded headers if they don't support it yet
12:27 neyasov____ joined #mojo
12:51 shmuel joined #mojo
13:27 lb http standardization is such a mess; adding official headers would've made more sense if it was 1.2
13:27 lb imagine if servers and clients could communicate what version they were speaking!
13:29 neyasov____ joined #mojo
14:14 mport joined #mojo
14:30 neyasov____ joined #mojo
14:31 shmuel joined #mojo
14:47 maze joined #mojo
15:16 shmuel joined #mojo
15:25 davido_ joined #mojo
15:31 neyasov____ joined #mojo
15:41 asarch joined #mojo
16:19 batman i'm not sure if i'm such a huge fan of versions.
16:19 batman i would rather like a protocol that exchange capabilities
16:31 neyasov____ joined #mojo
16:36 btyler joined #mojo
16:46 cpan_mojo Mojolicious-Plugin-NetsPayment 0.01 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-NetsPayment-0.01
17:32 neyasov____ joined #mojo
17:59 dod joined #mojo
18:04 davido_ joined #mojo
18:18 dexteruk joined #mojo
18:33 neyasov____ joined #mojo
18:48 ryanc joined #mojo
18:52 Claudio joined #mojo
19:16 btyler joined #mojo
19:26 btyler joined #mojo
19:34 neyasov____ joined #mojo
19:45 sshaw joined #mojo
19:55 asarch joined #mojo
20:04 sshaw With Mojo::Collection::c() you sorta don't have to do this anymore: for(ref $x eq 'ARRAY' ? @$x : $x)
20:05 sshaw but, you still have to count for $x being undef
20:05 sshaw via a next unless or something...
20:06 sshaw Seems like c() would be a tad better if it ignored a single undef arg
20:06 sshaw i.e., created [] instead of [undef]
20:10 sshaw Humm, but for(c(1)) is not the same as for(c([1])) which, I'd imaging is what would be most usfull
20:11 sshaw so maybe something in Mojo::Utils to do this?
20:12 dgikiller joined #mojo
20:13 sshaw After not doing a lot of perl for a few, I forgot how annoying it is trying to treat [], @x, and undef in a uniform manner
20:14 sshaw "So don't talk to people about Perl, talk to them about Mojolicious" - @tempire, Mojoconf 2014
20:20 sh4|2 joined #mojo
20:23 dgikiller joined #mojo
20:34 neyasov____ joined #mojo
20:37 sshaw https://gist.github.com/sshaw/141bcea8e8362bc2321a
20:43 mire joined #mojo
20:44 sshaw actally like Ruby's Array()
20:45 sshaw actually...
21:00 hesperaux joined #mojo
21:17 neyasov____ joined #mojo
21:18 neyasov____ joined #mojo
21:35 shadowboxer joined #mojo
21:50 rem_lex joined #mojo
22:17 mire joined #mojo
22:26 d4rkie joined #mojo
22:45 d4rkie joined #mojo
23:10 jwang joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary