mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-09 18:51:36 +00:00
CLEANUP: Fix typos in the http subsystem
Fix typos in code comment of the http subsystem.
This commit is contained in:
parent
b35ea68081
commit
942eea3f5c
@ -269,7 +269,7 @@ comp_http_forward_data(struct stream *s, struct filter *filter,
|
|||||||
|
|
||||||
if (!st->initialized) {
|
if (!st->initialized) {
|
||||||
if (!len) {
|
if (!len) {
|
||||||
/* Nothing to foward */
|
/* Nothing to forward */
|
||||||
ret = len;
|
ret = len;
|
||||||
}
|
}
|
||||||
else if (st->hdrs_len > len) {
|
else if (st->hdrs_len > len) {
|
||||||
@ -715,7 +715,7 @@ http_compression_buffer_end(struct comp_state *st, struct stream *s,
|
|||||||
* (chunk size, trailers, ...).
|
* (chunk size, trailers, ...).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Write real size at the begining of the chunk, no need of wrapping.
|
/* Write real size at the beginning of the chunk, no need of wrapping.
|
||||||
* We write the chunk using a dynamic length and adjust out->p and out->i
|
* We write the chunk using a dynamic length and adjust out->p and out->i
|
||||||
* accordingly afterwards. That will move <out> away from <data>.
|
* accordingly afterwards. That will move <out> away from <data>.
|
||||||
*/
|
*/
|
||||||
|
@ -699,7 +699,7 @@ char *http_extract_cookie_value(char *hdr, const char *hdr_end,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parses a qvalue and returns it multipled by 1000, from 0 to 1000. If the
|
/* Parses a qvalue and returns it multiplied by 1000, from 0 to 1000. If the
|
||||||
* value is larger than 1000, it is bound to 1000. The parser consumes up to
|
* value is larger than 1000, it is bound to 1000. The parser consumes up to
|
||||||
* 1 digit, one dot and 3 digits and stops on the first invalid character.
|
* 1 digit, one dot and 3 digits and stops on the first invalid character.
|
||||||
* Unparsable qvalues return 1000 as "q=1.000".
|
* Unparsable qvalues return 1000 as "q=1.000".
|
||||||
@ -735,7 +735,7 @@ int http_parse_qvalue(const char *qvalue, const char **end)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Given a url parameter, find the starting position of the first occurence,
|
* Given a url parameter, find the starting position of the first occurrence,
|
||||||
* or NULL if the parameter is not found.
|
* or NULL if the parameter is not found.
|
||||||
*
|
*
|
||||||
* Example: if query_string is "yo=mama;ye=daddy" and url_param_name is "ye",
|
* Example: if query_string is "yo=mama;ye=daddy" and url_param_name is "ye",
|
||||||
|
@ -218,7 +218,7 @@ static int sample_conv_url_dec(const struct arg *args, struct sample *smp, void
|
|||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* If the constant flag is set or if not size is avalaible at
|
/* If the constant flag is set or if not size is available at
|
||||||
* the end of the buffer, copy the string in other buffer
|
* the end of the buffer, copy the string in other buffer
|
||||||
* before decoding.
|
* before decoding.
|
||||||
*/
|
*/
|
||||||
|
@ -582,8 +582,8 @@ static int smp_fetch_uniqueid(const struct arg *args, struct sample *smp, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Returns a string block containing all headers including the
|
/* Returns a string block containing all headers including the
|
||||||
* empty line wich separes headers from the body. This is useful
|
* empty line which separes headers from the body. This is useful
|
||||||
* form some headers analysis.
|
* for some headers analysis.
|
||||||
*/
|
*/
|
||||||
static int smp_fetch_hdrs(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
static int smp_fetch_hdrs(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user