r = _vscprintf(format, ap);
#elif defined(sgi)
/* Make sure we always use the correct vsnprintf on IRIX */
- extern int _xpg5_vsnprintf(char * __restrict,
- __SGI_LIBC_NAMESPACE_QUALIFIER size_t,
+ extern int _xpg5_vsnprintf(char * __restrict,
+ __SGI_LIBC_NAMESPACE_QUALIFIER size_t,
const char * __restrict, /* va_list */ char *);
-
- r = _xpg5_vsnprintf(buf, buflen, format, ap);
+
+ r = _xpg5_vsnprintf(buf, buflen, format, ap);
#else
r = vsnprintf(buf, buflen, format, ap);
#endif
}
/* Should we send a 100 Continue status line? */
- if (req->kind == EVHTTP_REQUEST && REQ_VERSION_ATLEAST(req, 1, 1)) {
+ if (req->kind == EVHTTP_REQUEST && REQ_VERSION_ATLEAST(req, 1, 1)) {
const char *expect;
expect = evhttp_find_header(req->input_headers, "Expect");
size_t offset = 0;
char *translated;
const char *path;
-
+
/* Test for different URLs */
path = evhttp_uri_get_path(req->uri_elems);
offset = strlen(path);
mm_free(evalias->alias);
mm_free(evalias);
return 0;
- }
+ }
}
- return -1;
+ return -1;
}
void
mm_free(req->response_code_line);
if (req->host_cache != NULL)
mm_free(req->host_cache);
-
+
evhttp_clear_headers(req->input_headers);
mm_free(req->input_headers);
if (!host && req->input_headers) {
const char *p;
size_t len;
-
+
host = evhttp_find_header(req->input_headers, "Host");
/* The Host: header may include a port. Remove it here
to be consistent with uri_elems case above. */
}
}
}
-
+
return host;
}
req->flags |= EVHTTP_REQ_OWN_CONNECTION;
/* We did not present the request to the user user yet, so treat it as
- * if the user was done with the request. This allows us to free the
+ * if the user was done with the request. This allows us to free the
* request on a persistent connection if the client drops it without
* sending a request.
*/
/**
Add a server alias to an http object. The http object can be a virtual
- host or the main server.
+ host or the main server.
@param http the evhttp object
@param alias the alias to add
- @see evhttp_add_remove_alias()
+ @see evhttp_add_remove_alias()
*/
int evhttp_add_server_alias(struct evhttp *http, const char *alias);
/**
Remove a server alias from an http object.
-
+
@param http the evhttp object
@param alias the alias to remove
- @see evhttp_add_server_alias()
+ @see evhttp_add_server_alias()
*/
int evhttp_remove_server_alias(struct evhttp *http, const char *alias);
pattern[dirlen+2] = '\0';
d = FindFirstFileA(pattern, &ent);
free(pattern);
- if (d == INVALID_HANDLE_VALUE)
+ if (d == INVALID_HANDLE_VALUE)
goto err;
#else
if (!(d = opendir(whole_path)))
test_nonpersist_readd(void)
{
struct event ev1, ev2;
-
+
setup_test("Re-add nonpersistent events: ");
event_set(&ev1, pair[0], EV_READ, re_add_read_cb, &ev2);
event_set(&ev2, pair[1], EV_READ, re_add_read_cb, &ev1);
tt_abort_msg("Couldn't make request");
}
event_base_dispatch(data->base);
-
+
test_ok = 1;
end:
if (evcon)