Commits
- Commit:
bd726b55be4df8535a2b200a252193649566007a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
set SERVER_NAME to the vhost when executing CGI scripts
- Commit:
98c8f038acfbcb3f9366c9e22e5d75255187afeb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop inet_ntop leftovers
we switched to getnameinfo some time ago, but that call to inet_ntop
remained. Fortunately, it doesn't harm, since what i wrote is
overwritten by getnameinfo and the provided buffer should be large
enough.
- Commit:
7edc455ab4ba2c408558876339ac77a3104d0de2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move cgi stuff to its own file
- Commit:
5bc3c98ed4e25bc68a72dd6cd6676b25d2cdf9cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add protocols to the config
- Commit:
8696c5ea2484893ba0422d9bd4732d15d24eb1fc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changes
- Commit:
b777bf4b2be13429a31eaefdc89ceaf9fe252f24
- From:
- Omar Polo <op@omarpolo.com>
- Date:
check also that the port number matches
- Commit:
f7b816dc398efba2fb1cd4e2982ee3b23eed624f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
dafb57b8af432d800219a8e17900e1ac56a65c14
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sandbox also on FreeBSD with capsicum
- Commit:
4ad11931ec10c823e98b7c51efc7146d8cbdd012
- From:
- Omar Polo <op@omarpolo.com>
- Date:
update README
- Commit:
6214c12719b8451fc60127d2b932c59050c160d4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added sample configuration
- Commit:
e4d82becb71b1b8f9c843a5f0f8657bc6b93c67b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
normalize host name when parsing the IRI
RFC3986 3.2.2 "Host" says that
> Although host is case-insensitive, producers and normalizers should
> use lowercase for registered names and hexadecimal addresses for the
> sake of uniformity, while only using uppercase letters for
> percent-encodings.
so we cope with that.
- Commit:
15902770073dd67df3a9af0f6da7d63bfb031d72
- From:
- Omar Polo <op@omarpolo.com>
- Date:
conf & vhosts
* gmid.c (main): changed behaviour: daemon off by default
(main): changed -c in -C (cert option)
(main): changed -k in -K (key option, for consistency with -C)
(main): added -c to load a configuration
(main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
(handle_handshake): add vhosts support
- Commit:
4d2ec6d7054c76105c6237251002df1acb5a6c2d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
9939ddcf9d765c98ae527d75627441c50ac7e4bf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changes
- Commit:
de428fff65f1ef1a337a1caafb3d580433c73fc9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
normalize schema when parsing the IRI
RFC3986 in section 3.1 "Scheme" says that
> Although schemes are case-insensitive, the canonical form is
> lowercase and documents that specify schemes must do so with
> lowercase letters. An implementation should accept uppercase
> letters as equivalent to lowercase in scheme names (e.g., allow
> "HTTP" as well as "http") for the sake of robustness but should only
> produce lowercase scheme names for consistency.
so we cope with that. The other possibility would have been to use
strcasecmp instead of strcmp when checking on the protocol, but since
the "case" version, although popular, is not part of any standard
AFAIK I prefer downcasing while parsing and be done with it.