rfc3986里头推荐用大写,php、java的实现也都是大写,我们是否有必要也提供一个大写的实现?
The uppercase hexadecimal digits 'A' through 'F' are equivalent to
the lowercase digits 'a' through 'f', respectively. If two URIs
differ only in the case of hexadecimal digits used in percent-encoded
octets, they are equivalent. For consistency, URI producers and
normalizers should use uppercase hexadecimal digits for all percent-
encodings.
在 2013年2月28日星期四UTC+8上午3时39分08秒,agentzh写道:
Hello!
2013/2/27 Simon:
> uintptr_t
> ngx_http_lua_escape_uri(u_char *dst, u_char *src, size_t size, ngx_uint_t
> type)
> {
> ngx_uint_t n;
> uint32_t *escape;
> static u_char hex[] = "0123456789abcdef";
>
> 春哥只实现了小写的转换函数,我想问有没有大写的,还是得自己改改代码。
>
使用小写是为了和 Nginx 核心中的行为保持一致。
Regards,
-agentzh