git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127545
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/*! \brief Return an ast_str malloc()'d string containing an HTTP error message */
struct ast_str *ast_http_error(int status, const char *title, const char *extra_header, const char *text);
+/*! \brief Return the current prefix */
+void ast_http_prefix(char *buf, int len);
+
#endif /* _ASTERISK_SRV_H */
return mngid;
}
+void ast_http_prefix(char *buf, int len)
+{
+ if (buf) {
+ ast_copy_string(buf, prefix, len);
+ }
+}
+
static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser, const struct ast_http_uri *urih, const char *uri, enum ast_http_method method, struct ast_variable *vars, struct ast_variable *headers, int *status, char **title, int *contentlength)
{
char *path;