Commits
- Commit:
5f715ce43fa60b2347d6dc64588c5ffe61ebc067
- From:
- Omar Polo <op@omarpolo.com>
- Date:
print the header in the directory listing
- Commit:
35744950aa0953bee3035400e8035af844a675ba
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify handle_cgi
Now that I got rid of the enum+switch, adding more state is easier.
Before, we used an hack to remember if we had read the CGI reply or
not (c->code = -1).
This introduces a new state, handle_cgi_reply that reads the CGI
script reply, logs it, and only then switches to handle_cgi.
handle_cgi itself is cleaner, now it only reads into c->sbuf and send
what it had red.
We even get, almost for free, the 42 error. If read exists with -1 or
0 from in handle_cgi_reply, we return a proper error to the client.
We can extend this further in the future and also try to validate the
CGI reply (for now we're only looking for a \n).
- Commit:
b06f80cdf43be684bd57f9674917d2479bc0d317
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to handle_open_conn right after handshake
So we don't re-enter the handle_handsahke and re-do the loop on
fnmatch etc. This way, once we're successfully past the handshake,
we'll re-enter no handle_open_conn.
- Commit:
112802ea3116b6e11a70d6060e6e238495498bbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
client state machine: function pointers instead of enum+switch
- Commit:
2fafa2d23e5607def335902b7a9d10a9de5247a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bring the CGI implementation in par with GLV-1.12556
- Commit:
b59f3cdd27555984293c9f917eaec49aa2beb5f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
6016a593a32c4f3f27ed3e7892a1595d631fcbef
- From:
- Omar Polo <op@omarpolo.com>
- Date:
invert the location precedence: first match wins
It's how httpd(8) does it, and it allows us to call fnmatch less time
- Commit:
a8d4a89770f9de24a812a3638c83dde56542d413
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't ignore punycode errors when decoding SNI-provided servname
- Commit:
a2fd80132769e268bee6af754eca6eb13035de78
- From:
- Omar Polo <op@omarpolo.com>
- Date:
puny_decode: set an error string
- Commit:
90cb9eea8a1bdee8385e1f14ee69cf0955420af6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't log the SNI & matching
I'll re-enable this when i'll improve the logging
- Commit:
22c6d6334deef920cd0212ca92f61d315860177a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
log info about SNI, punycode and matched vhost
- Commit:
caad03081b5ab370b8e0aaee5795ff36fa6febd8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
some null checks
- Commit:
c4f682f8559b184d64b04aece37d3d2980859832
- From:
- Omar Polo <op@omarpolo.com>
- Date:
trim_req_iri: set error string
- Commit:
3300cbe06a9567c66ee63f3866bcbcf3430e0205
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initial punycode support
- Commit:
8443bff77ac2c8a055d9125dc2f621df124b78ef
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework the configless mode: change flags and generate certs