projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
remove 90% of the request method cruft; request methods are now simple strings
[m6w6/ext-http]
/
php_http_misc.h
diff --git
a/php_http_misc.h
b/php_http_misc.h
index cebf78da3d0a61b6025d3ed016074628f4296589..35c8951df9a94cebadd6ae09eaede19b6f46e6d4 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-139,7
+139,9
@@
static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i
for (eol = bin; eol - bin < len; ++eol) {
if (*eol == '\r' || *eol == '\n') {
for (eol = bin; eol - bin < len; ++eol) {
if (*eol == '\r' || *eol == '\n') {
- *eol_len = eol ? ((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1) : 0;
+ if (eol_len) {
+ *eol_len = eol ? ((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1) : 0;
+ }
return eol;
}
}
return eol;
}
}