* and apreq_post_initialize() instead.
*
* @param pool a base pool persisting while libapreq2 is used
- * @remarks after you detroy the pool, you have to call this function again
+ * @remarks after you destroy the pool, you have to call this function again
* with a new pool if you still plan to use libapreq2
*/
APREQ_DECLARE(apr_status_t) apreq_initialize(apr_pool_t *pool);
* create a post-config hook using APR_HOOK_MIDDLE.
*
* @param pool a base pool persisting while libapreq2 is used
- * @remarks after you detroyed the pool, you have to call this function again
+ * @remarks after you destroyed the pool, you have to call this function again
* with a new pool if you still plan to use libapreq2
*/
APREQ_DECLARE(apr_status_t) apreq_pre_initialize(apr_pool_t *pool);
/**
* Special purpose utility for locating a parameter
- * during parsing. The hook's ctx shoud be initialized
+ * during parsing. The hook's ctx should be initialized
* to an apreq_hook_find_param_ctx_t *, with the name
* attribute set to the sought parameter name, the param
* attribute set to NULL, and the prev attribute set to
* @return ::APREQ_ERROR_BADSEQ or ::APREQ_ERROR_BADCHAR on malformed input.
*
* @remarks In the non-success case, dlen will be set to include
- * the last succesfully decoded value. This function decodes
+ * the last successfully decoded value. This function decodes
* \%uXXXX into a utf8 (wide) character, following ECMA-262
* (the Javascript spec) Section B.2.1.
*/
* @return ::APREQ_ERROR_BADSEQ or ::APREQ_ERROR_BADCHAR on malformed input.
*
* @remarks In the non-APR_SUCCESS case, dlen will be set to include
- * the last succesfully decoded value. This function decodes
+ * the last successfully decoded value. This function decodes
* \%uXXXX into a utf8 (wide) character, following ECMA-262
* (the Javascript spec) Section B.2.1.
*/
* The AP_MAYBE_UNUSED macro is used for variable declarations that
* might potentially exhibit "unused var" warnings on some compilers if
* left untreated.
- * Since static intializers are not part of the C language (C89), making
+ * Since static initializers are not part of the C language (C89), making
* (void) usage is not possible. However many compiler have proprietary
* mechanism to suppress those warnings.
*/
module AP_MODULE_DECLARE_DATA sed_module;
/* This function will be call back from libsed functions if there is any error
- * happend during execution of sed scripts
+ * happened during execution of sed scripts
*/
static apr_status_t log_sed_errf(void *data, const char *error)
{
* the buckets in bbinp and read the data from buckets and invoke
* sed_eval_buffer on the data. libsed will generate its output using
* sed_write_output which will add data in ctx->bb. Do it until it have
- * atleast one bucket in ctx->bb. At the end of data eos bucket
+ * at least one bucket in ctx->bb. At the end of data eos bucket
* should be there.
*
* Once eos bucket is seen, then invoke sed_finalize_eval to clear the
/* The EOR bucket has either been handled by an output filter (eg.
* deleted or moved to a buffered_bb => no more in bb), or an error
- * occured before that (eg. c->aborted => still in bb) and we ought
+ * occurred before that (eg. c->aborted => still in bb) and we ought
* to destroy it now. So cleanup any remaining bucket along with
* the orphan request (if any).
*/
AP_INTERNAL_REDIRECT(r->uri, new_uri);
- /* ap_die was already called, if an error occured */
+ /* ap_die was already called, if an error occurred */
if (!new) {
return;
}
int access_status;
request_rec *new = internal_internal_redirect(new_uri, r);
- /* ap_die was already called, if an error occured */
+ /* ap_die was already called, if an error occurred */
if (!new) {
return;
}
else if (!strcasecmp("BEFORE", sdependency)) {
dependency = H2_DEPENDANT_BEFORE;
if (sweight) {
- return "dependecy 'Before' does not allow a weight";
+ return "dependency 'Before' does not allow a weight";
}
}
else if (!strcasecmp("INTERLEAVED", sdependency)) {
if (H2_REQ_ENTRIES_EMPTY(&ngn->entries)) {
if (want_shutdown) {
ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, shed->c,
- "h2_ngn_shed(%ld): emtpy queue, shutdown engine %s",
+ "h2_ngn_shed(%ld): empty queue, shutdown engine %s",
shed->c->id, ngn->id);
ngn->shutdown = 1;
}
/**
* A h2_task fakes a HTTP/1.1 request from the data in a HTTP/2 stream
- * (HEADER+CONT.+DATA) the module recieves.
+ * (HEADER+CONT.+DATA) the module receives.
*
* In order to answer a HTTP/2 stream, we want all Apache httpd infrastructure
* to be involved as usual, as if this stream can as a separate HTTP/1.1
void h2_task_register_hooks(void);
/*
- * One time, post config intialization.
+ * One time, post config initialization.
*/
apr_status_t h2_task_init(apr_pool_t *pool, server_rec *s);
void h2_iq_sort(h2_iqueue *q, h2_iq_cmp *cmp, void *ctx)
{
/* Assume that changes in ordering are minimal. This needs,
- * best case, q->nelts - 1 comparisions to check that nothing
+ * best case, q->nelts - 1 comparisons to check that nothing
* changed.
*/
if (q->nelts > 0) {
return NULL;
}
-/* r:parsebody(): Parses regular (url-enocded) or multipart POST data and returns two tables*/
+/* r:parsebody(): Parses regular (url-encoded) or multipart POST data and returns two tables*/
static int req_parsebody(lua_State *L)
{
apr_array_header_t *pairs;
/**
* ap_os_escape_path (apr_pool_t *p, const char *path, int partial)
- * convert an OS path to a URL in an OS dependant way.
+ * convert an OS path to a URL in an OS dependent way.
* @param p The pool to allocate from
* @param path The path to convert
* @param partial if set, assume that the path will be appended to something
/* There's not much else we can do ... we've already sent the headers
* to the client.
*/
- ap_rputs("\n\n[an internal server error occured]\n", r);
+ ap_rputs("\n\n[an internal server error occurred]\n", r);
menu_footer(r);
return OK;
}
* unable to contact any of the servers, a 502 will be returned to the
* client.
*
- * Returns OK on sucess, all other return codes will result in a 500.
+ * Returns OK on success, all other return codes will result in a 500.
*
* This field must be set.
*/
NULL, NULL,
client_extension_parse_callback, cbi)) {
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
- APLOGNO(02740) "Unable to initalize Certificate "
+ APLOGNO(02740) "Unable to initialize Certificate "
"Transparency client extension callbacks "
"(callback for %d already registered?)",
CT_EXTENSION_TYPE);
NULL, NULL,
server_extension_parse_callback, cbi)) {
ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s,
- APLOGNO(02741) "Unable to initalize Certificate "
+ APLOGNO(02741) "Unable to initialize Certificate "
"Transparency server extension callback "
"(callbacks for %d already registered?)",
CT_EXTENSION_TYPE);
APREQ_DECLARE(int) apreq_cookie_serialize(const apreq_cookie_t *c,
char *buf, apr_size_t len)
{
- /* The format string must be large enough to accomodate all
+ /* The format string must be large enough to accommodate all
* of the cookie attributes. The current attributes sum to
* ~90 characters (w/ 6-8 padding chars per attr), so anything
* over 100 should be fine.
/** Interactive patch:
* TODO Don't use 65K buffer
- * TODO Handle empty/non-existant parameters
+ * TODO Handle empty/non-existent parameters
* TODO Allow body elements to be files
* TODO When running body/get/cookies all at once, include previous cached
* values (and don't start at 0 in count)
Always check query_string before prompting user,
but rewrite body/cookies to get if interactive
- Definately more work needed here...
+ Definitely more work needed here...
*/
static int is_interactive_mode(apr_pool_t *pool)
{