projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
s/beta/stable
[m6w6/ext-http]
/
php_http_misc.h
diff --git
a/php_http_misc.h
b/php_http_misc.h
index 3bd77d8b931046006373445f7344476a7bd2a1b9..cf00f24ef5a71e3d3b21c1a8e0283f2c439e8b97 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-27,6
+27,9
@@
/* send buffer size */
#define PHP_HTTP_SENDBUF_SIZE 40960
/* send buffer size */
#define PHP_HTTP_SENDBUF_SIZE 40960
+/* allowed characters of header field names */
+#define PHP_HTTP_HEADER_NAME_CHARS "!#$%&'*+-.^_`|~1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+
/* SLEEP */
#define PHP_HTTP_DIFFSEC (0.001)
/* SLEEP */
#define PHP_HTTP_DIFFSEC (0.001)
@@
-41,10
+44,10
@@
PHP_HTTP_API void php_http_sleep(double s);
/* STRING UTILITIES */
/* STRING UTILITIES */
-#ifndef
S
TR_SET
-# define
S
TR_SET(STR, SET) \
+#ifndef
P
TR_SET
+# define
P
TR_SET(STR, SET) \
{ \
{ \
-
S
TR_FREE(STR); \
+
P
TR_FREE(STR); \
STR = SET; \
}
#endif
STR = SET; \
}
#endif
@@
-291,7
+294,7
@@
static inline void php_http_array_hashkey_stringify(php_http_array_hashkey_t *ke
static inline void php_http_array_hashkey_stringfree(php_http_array_hashkey_t *key)
{
if (key->type != HASH_KEY_IS_STRING || key->dup) {
static inline void php_http_array_hashkey_stringfree(php_http_array_hashkey_t *key)
{
if (key->type != HASH_KEY_IS_STRING || key->dup) {
-
S
TR_FREE(key->str);
+
P
TR_FREE(key->str);
}
}
}
}